reformat boilerplate
This commit is contained in:
parent
286f58b614
commit
0324cf1994
5 changed files with 85 additions and 42 deletions
|
|
@ -1,25 +1,27 @@
|
|||
{ inputs, self, ... }: {
|
||||
|
||||
|
||||
# module declaration
|
||||
flake.nixosConfigurations.myMachine = inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
# modules to import
|
||||
modules = with self; [
|
||||
nixosModules.myMachineModule
|
||||
nixosModules.myMachineModule
|
||||
nixosModules.myFirstModule
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
|
||||
# module declaration
|
||||
flake.nixosModules.myMachineModule = { pkgs, ... }: {
|
||||
|
||||
# options declarations
|
||||
boot.loader.grub.enable = true;
|
||||
|
||||
# packages to import
|
||||
environment.systemPackages = with self; [
|
||||
packages.${pkgs.system}.myPackage
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue