reorganisation
This commit is contained in:
18
modules/attrs/desktop/default.nix
Normal file
18
modules/attrs/desktop/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
moduleWithSystem,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.nixosModules.desktop = moduleWithSystem ({pkgs, ...}: let
|
||||||
|
modules = with self.nixosModules; [
|
||||||
|
core
|
||||||
|
networking
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
imports = modules;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
lazygit
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
# Define modules to import
|
# Define modules to import
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
hostConfiguration
|
hostConfiguration
|
||||||
system
|
desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
# Define modules to import
|
# Define modules to import
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
newHostConfiguration
|
newHostConfiguration
|
||||||
system
|
desktop
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
# Change config options in this object
|
# Change config options in this object
|
||||||
25
modules/system/core/default.nix
Normal file
25
modules/system/core/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{self, ...}: {
|
||||||
|
# This module acts as a collection of other modules, for ease
|
||||||
|
# of use. Adding another module to this list will import it
|
||||||
|
# for all other modules that import this one.
|
||||||
|
|
||||||
|
# Keep in mind that you cannot import this module alongside
|
||||||
|
# any of its children. For example, importing this module and
|
||||||
|
# the user module in the same block is the same as importing
|
||||||
|
# the user module twice, leading to an error due to trying
|
||||||
|
# to define the same user twice.
|
||||||
|
|
||||||
|
# Collections should be used for static lists of modules, like
|
||||||
|
# those that would make up a basic system, as seen here.
|
||||||
|
|
||||||
|
# Define flake part nixosModule "core"
|
||||||
|
flake.nixosModules.core = {...}: let
|
||||||
|
modules = with self.nixosModules; [
|
||||||
|
user
|
||||||
|
bootloader
|
||||||
|
imports
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
imports = modules;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{self, ...}: {
|
|
||||||
# This module acts as a collection of other modules, for ease
|
|
||||||
# of use. Adding another module to this list will import it
|
|
||||||
# for all other modules that import this one.
|
|
||||||
|
|
||||||
# Keep in mind that you cannot import this module alongside
|
|
||||||
# any of its children. For example, importing this module and
|
|
||||||
# the user module in the same block is the same as importing
|
|
||||||
# the user module twice, leading to an error due to trying
|
|
||||||
# to define the same user twice.
|
|
||||||
|
|
||||||
# Collections should be used for static lists of modules, like
|
|
||||||
# those that would make up a basic system, as seen here.
|
|
||||||
|
|
||||||
# Define flake part nixosModule "system"
|
|
||||||
flake.nixosModules.system = {...}: let
|
|
||||||
modules = with self.nixosModules; [
|
|
||||||
user
|
|
||||||
networking
|
|
||||||
bootloader
|
|
||||||
imports
|
|
||||||
];
|
|
||||||
in {
|
|
||||||
imports = modules;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user