add homelab, nc
This commit is contained in:
parent
ab7d7e6b81
commit
e179c6e9d5
10 changed files with 206 additions and 40 deletions
19
flake.nix
19
flake.nix
|
|
@ -3,6 +3,7 @@
|
|||
inputs = {
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
pre-commit-hooks = {
|
||||
url = "github:cachix/pre-commit-hooks.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -35,6 +36,7 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-stable,
|
||||
systems,
|
||||
...
|
||||
} @ inputs: let
|
||||
|
|
@ -48,16 +50,20 @@
|
|||
overlays = [
|
||||
(_final: _prev: {
|
||||
steam = pkgs.writeShellScriptBin "steam" ''
|
||||
flatpak run com.valvesoftware.Steam -pipewire "$@"
|
||||
${_prev.steam.outPath}/bin/steam -pipewire "$@"
|
||||
'';
|
||||
})
|
||||
inputs.nvim.overlays.default
|
||||
];
|
||||
};
|
||||
pkgs-stable = import nixpkgs-stable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
||||
treefmtEval = eachSystem (pkgs: inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
||||
in {
|
||||
nixosConfigurations = import ./nixos {inherit inputs pkgs attrs system;};
|
||||
nixosConfigurations = import ./nixos {inherit inputs pkgs pkgs-stable attrs system;};
|
||||
homeConfigurations = import ./home-manager {inherit inputs pkgs attrs;};
|
||||
checks = {
|
||||
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
||||
|
|
@ -78,6 +84,15 @@
|
|||
path = inputs.deploy-rs.lib.${system}.activate.nixos self.nixosConfigurations.consensus;
|
||||
};
|
||||
};
|
||||
nc = {
|
||||
hostname = "nc.10110110.xyz";
|
||||
sshUser = "root";
|
||||
remoteBuild = true;
|
||||
profiles.system = {
|
||||
user = "root";
|
||||
path = inputs.deploy-rs.lib.${system}.activate.nixos self.nixosConfigurations.nc;
|
||||
};
|
||||
};
|
||||
};
|
||||
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue