tidying and such
This commit is contained in:
parent
84f4170e02
commit
7ca14b5a6e
13 changed files with 84 additions and 20 deletions
16
modules/home/programs/optional-program.nix
Normal file
16
modules/home/programs/optional-program.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, ... }: {
|
||||
|
||||
# module declaration
|
||||
flake.nixosModules.myFirstModule = { pkgs, ... }: {
|
||||
|
||||
# options declarations
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# packages to include
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{ self, inputs, ... }: {
|
||||
|
||||
perSystem = { pkgs, ... }: {
|
||||
|
||||
packages.myKitty = inputs.wrapper-modules.wrappers.kitty.wrap {
|
||||
settings = {
|
||||
foo = bar;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -71,8 +71,5 @@
|
|||
openrgb-with-all-plugins
|
||||
];
|
||||
|
||||
# dont touch this
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,22 +1,38 @@
|
|||
{ self, inputs, config, ... }: {
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
# defines the hades specific config modules
|
||||
flake.nixosConfigurations.hades = inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
# modules that comprise the host specific module
|
||||
modules = [
|
||||
self.nixosModules.hadesHardware
|
||||
self.nixosModules.hadesConfig
|
||||
|
||||
# core system modules
|
||||
self.nixosModules.coreConfig
|
||||
|
||||
# hades system modules
|
||||
self.nixosModules.hadesHardware
|
||||
self.nixosModules.hadesConfig
|
||||
|
||||
# home manager and home manager imports
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.backupFileExtension = "bak";
|
||||
home-manager.users.serenity = {
|
||||
imports = [
|
||||
config.flake.homeModules.base
|
||||
config.flake.homeModules.baseHome
|
||||
config.flake.homeModules.hadesHome
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
16
modules/pkgs/custom-package.nix
Normal file
16
modules/pkgs/custom-package.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, ... }: {
|
||||
|
||||
# module declaration
|
||||
flake.nixosModules.myFirstModule = { pkgs, ... }: {
|
||||
|
||||
# options declarations
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# packages to include
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
16
modules/system/packages.nix
Normal file
16
modules/system/packages.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, ... }: {
|
||||
|
||||
# module declaration
|
||||
flake.nixosModules.myFirstModule = { pkgs, ... }: {
|
||||
|
||||
# options declarations
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# packages to include
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
16
modules/system/programs/gaming.nix
Normal file
16
modules/system/programs/gaming.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, ... }: {
|
||||
|
||||
# module declaration
|
||||
flake.nixosModules.myFirstModule = { pkgs, ... }: {
|
||||
|
||||
# options declarations
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# packages to include
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue