mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-10 06:46:36 +02:00
Switch to flake-based configuration
This commit is contained in:
parent
fad1c56a56
commit
f17713236d
25 changed files with 578 additions and 216 deletions
34
nixos/flake-module.nix
Normal file
34
nixos/flake-module.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{self, inputs, ...}:
|
||||
let
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
inherit (inputs) nixpkgs;
|
||||
|
||||
defaultModules = [
|
||||
{
|
||||
_module.args.self = self;
|
||||
_module.args.inputs = self.inputs;
|
||||
}
|
||||
({ ... }: {
|
||||
#srvos.flake = self;
|
||||
#documentation.info.enable = false;
|
||||
#services.envfs.enable = true;
|
||||
|
||||
imports = [
|
||||
#inputs.sops-nix.nixosModules.sops
|
||||
./modules/users.nix
|
||||
./modules/common.nix
|
||||
];
|
||||
})
|
||||
];
|
||||
in
|
||||
{
|
||||
flake.nixosConfigurations = {
|
||||
kevin-tp = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = defaultModules ++ [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./kevin-tp/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue