initial commit
This commit is contained in:
commit
813b424831
13 changed files with 171 additions and 0 deletions
7
modules/boot.nix
Normal file
7
modules/boot.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
boot.loader.grub.useOSProber = true;
|
||||
}
|
||||
5
modules/default-packages.nix
Normal file
5
modules/default-packages.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
programs.vim.enable = true;
|
||||
}
|
||||
15
modules/git.nix
Normal file
15
modules/git.nix
Normal 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
16
modules/graphical.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
5
modules/networkManager.nix
Normal file
5
modules/networkManager.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{config, pkgs, ...}:
|
||||
|
||||
{
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
16
modules/terminal.nix
Normal file
16
modules/terminal.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue