nix: add flake to build system

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-29 23:46:02 +03:00
parent 624ce31ae7
commit b1762e8404
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
7 changed files with 45 additions and 5 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
secrets.nix filter=git-crypt diff=git-crypt

2
.gitignore vendored
View file

@ -1,4 +1,2 @@
/secrets.nix
/wallpapers/*.jpg /wallpapers/*.jpg

27
flake.lock Normal file
View 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
View 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

Binary file not shown.

View file

@ -3,5 +3,6 @@
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
stylua stylua
git-crypt
]; ];
} }

View file

@ -8,8 +8,6 @@ let
secrets = import ../secrets.nix; secrets = import ../secrets.nix;
in in
{ {
imports = [ ./machine/home ];
networking = { networking = {
networkmanager.enable = true; networkmanager.enable = true;
@ -150,4 +148,3 @@ in
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11"; # Did you read the comment?
} }