initial commit

This commit is contained in:
Fishandchips321 2026-02-26 15:17:43 +00:00
commit 813b424831
13 changed files with 171 additions and 0 deletions

7
modules/boot.nix Normal file
View file

@ -0,0 +1,7 @@
{config, pkgs, ...}:
{
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
boot.loader.grub.useOSProber = true;
}

View file

@ -0,0 +1,5 @@
{config, pkgs, ...}:
{
programs.vim.enable = true;
}

15
modules/git.nix Normal file
View file

@ -0,0 +1,15 @@
{config, pkgs, lib, ...}:
let
cfg = config.modules.git;
in
{
options = {
modules.git.enable = lib.mkEnableOption "Enable git";
};
config = lib.mkIf cfg.enable {
programs.git.enable = true;
};
}

16
modules/graphical.nix Normal file
View file

@ -0,0 +1,16 @@
{config, pkgs, lib, ...}:
let
cfg = config.modules.graphical;
in
{
options = {
modules.graphical.enable = lib.mkEnableOption "Enable the GUI";
};
config = lib.mkIf cfg.enable {
programs.niri.enable = true;
services.displayManager.ly.enable = true;
};
}

View file

@ -0,0 +1,5 @@
{config, pkgs, ...}:
{
networking.networkmanager.enable = true;
}

16
modules/terminal.nix Normal file
View file

@ -0,0 +1,16 @@
{config, pkgs, lib, ...}:
let
cfg = config.modules.terminal;
in
{
options = {
modules.terminal.enable = lib.mkEnableOption "Enables alacritty";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
alacritty
];
};
}