nixos/flake.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2021-07-13 09:53:22 +01:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
2021-08-25 10:06:00 +01:00
url = "github:rycee/home-manager/release-21.05";
2021-07-13 09:53:22 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
2021-10-06 18:17:06 +01:00
2021-10-13 13:29:07 +01:00
outputs = inputs @ { self, nixpkgs, nixos-unstable, home-manager }: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ (final: prev: { inherit unstable; }) ];
};
unstable = import nixos-unstable {
inherit system;
config.allowUnfree = true;
};
utils = import ./lib { inherit pkgs unstable nixpkgs nixos-unstable home-manager; };
inherit (utils) host;
inherit (utils) user;
2021-10-06 18:17:06 +01:00
in {
nixosConfigurations = {
2021-10-14 13:07:05 +01:00
architect = host.mkHost { name = "architect"; users = [ { user = "giulio"; roles = []; } ]; };
2021-10-14 12:53:59 +01:00
gAluminum = host.mkHost { name = "gAluminum"; users = [ { user = "giulio"; roles = [ "desktop" "ssh" "git" ]; } ]; roles = [ "gnome" ]; };
2021-10-13 13:29:07 +01:00
proxy = host.mkHost { name = "proxy"; };
2021-08-23 12:25:36 +01:00
};
2021-07-13 09:53:22 +01:00
};
}