Compare commits

..

3 commits

Author SHA1 Message Date
cecd2f3d32
nushell: add tsuki alias
All checks were successful
ci/woodpecker/push/checks Pipeline was successful
2023-09-24 17:18:23 -04:00
9515e95a45
modules: init nh for all hosts 2023-09-24 17:17:59 -04:00
bb38e8300a
flake.nix: init nh 2023-09-24 17:17:33 -04:00
5 changed files with 87 additions and 2 deletions

View file

@ -148,6 +148,24 @@
"type": "github"
}
},
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1690933134,
"narHash": "sha256-ab989mN63fQZBFrkk4Q8bYxQCktuHmBIBqUG1jl6/FQ=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "59cf3f1447cfc75087e7273b04b31e689a8599fb",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1667395993,
@ -309,6 +327,43 @@
"type": "github"
}
},
"nh": {
"inputs": {
"flake-parts": "flake-parts",
"nix-filter": "nix-filter",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1694971480,
"narHash": "sha256-5UKSMDiboMIs15WN6jbctJgYfnGPfkHhvWWaboB2rGk=",
"owner": "viperML",
"repo": "nh",
"rev": "4b88da6fc89bf06d6598ce9a881590a7cc0dcafd",
"type": "github"
},
"original": {
"owner": "viperML",
"repo": "nh",
"type": "github"
}
},
"nix-filter": {
"locked": {
"lastModified": 1687178632,
"narHash": "sha256-HS7YR5erss0JCaUijPeyg2XrisEb959FIct3n2TMGbE=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "d90c75e8319d0dd9be67d933d8eb9d0894ec9174",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
@ -343,6 +398,24 @@
"type": "indirect"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1690881714,
"narHash": "sha256-h/nXluEqdiQHs1oSgkOOWF+j8gcJMWhwnZ9PFabN6q0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9e1960bc196baf6881340d53dccb203a951745a2",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1685004253,
@ -398,6 +471,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"ironbar": "ironbar",
"nh": "nh",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_2",
"sops-nix": "sops-nix"

View file

@ -33,6 +33,10 @@
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
nh = {
url = "github:viperML/nh";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {nixpkgs, ...} @ inputs: let
system = "x86_64-linux";

View file

@ -14,6 +14,7 @@ alias cat = bat
alias rm = rm -i
alias cp = cp -i
alias mv = mv -i
alias tsuki = nh os switch . -a --nom
alias sakura = nix run github:serokell/deploy-rs ".#sakura"
alias kariru = nix run github:serokell/deploy-rs ".#kariru"
alias yuki = nix run github:serokell/deploy-rs ".#yuki"

View file

@ -1,5 +1,6 @@
{...}: {
{inputs, ...}: {
imports = [
inputs.nh.nixosModules.default
./security.nix
./networking.nix
./users.nix

View file

@ -1,10 +1,15 @@
{pkgs, ...}: {
_: {
nixpkgs = {
config = {
allowUnfree = true;
};
};
nh = {
enable = true;
clean.enable = true;
};
nix = {
gc = {
automatic = true;