nix: add flake to build system
This commit is contained in:
parent
624ce31ae7
commit
b1762e8404
7 changed files with 45 additions and 5 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
secrets.nix filter=git-crypt diff=git-crypt
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,2 @@
|
|||
/secrets.nix
|
||||
|
||||
/wallpapers/*.jpg
|
||||
|
||||
|
|
27
flake.lock
Normal file
27
flake.lock
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1661628722,
|
||||
"narHash": "sha256-oR/7NhG7pPkACToUtaaT6hH+rONE2z5/4NzjoUwEZt8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "324c8aaf25b2f2027af7798e5582ce3040a793b6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
16
flake.nix
Normal file
16
flake.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
nixosConfigurations.systemHome = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./system/configuration.nix
|
||||
./system/machine/home
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
BIN
secrets.nix
Normal file
BIN
secrets.nix
Normal file
Binary file not shown.
|
@ -3,5 +3,6 @@
|
|||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
stylua
|
||||
git-crypt
|
||||
];
|
||||
}
|
||||
|
|
|
@ -8,8 +8,6 @@ let
|
|||
secrets = import ../secrets.nix;
|
||||
in
|
||||
{
|
||||
imports = [ ./machine/home ];
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
|
||||
|
@ -150,4 +148,3 @@ in
|
|||
system.stateVersion = "22.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue