2023-08-23 07:30:15 +02:00
|
|
|
{
|
2023-07-01 09:48:31 +02:00
|
|
|
description = "NixOS System Config";
|
|
|
|
inputs = {
|
2023-08-25 12:07:54 +02:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2023-08-27 12:35:58 +02:00
|
|
|
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
2023-08-25 12:07:54 +02:00
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2023-08-23 07:30:15 +02:00
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-25 12:07:54 +02:00
|
|
|
lanzaboote.url = "github:nix-community/lanzaboote";
|
2023-08-23 07:30:15 +02:00
|
|
|
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
2023-08-25 12:07:54 +02:00
|
|
|
nur.url = "github:nix-community/NUR";
|
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
2023-07-01 09:48:31 +02:00
|
|
|
};
|
2023-08-23 07:30:15 +02:00
|
|
|
outputs = {
|
2023-08-27 12:35:58 +02:00
|
|
|
self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
|
2023-08-14 07:55:14 +02:00
|
|
|
}@inputs:
|
2023-07-01 09:48:31 +02:00
|
|
|
let
|
2023-08-23 07:30:15 +02:00
|
|
|
inherit (self) outputs;
|
|
|
|
stateVersion = "unstable";
|
2023-08-24 13:52:02 +02:00
|
|
|
hmStateVersion = "23.11";
|
2023-08-23 14:41:07 +02:00
|
|
|
libx = import ./lib { inherit inputs outputs stateVersion hmStateVersion; };
|
2023-07-01 09:48:31 +02:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2023-09-14 14:45:40 +02:00
|
|
|
# Currently a Lenovo P1 Gen 5
|
2023-08-31 13:22:44 +02:00
|
|
|
nixos-laptop = libx.mkHost {
|
|
|
|
hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; gpu = "intel"; theme = "gruvbox";
|
|
|
|
};
|
2023-09-14 14:45:40 +02:00
|
|
|
# Ryzen 7 Framework 13
|
|
|
|
nixos-framework = libx.mkHost {
|
|
|
|
hostname = "nixos-framework"; username = "albert"; desktop = "hyprland"; gpu = "amd"; theme = "gruvbox";
|
|
|
|
};
|
2023-08-31 13:22:44 +02:00
|
|
|
nixos-desktop = libx.mkHost {
|
|
|
|
hostname = "nixos-desktop"; username = "albert"; desktop = "gnome"; gpu = "nvidia"; theme = "gruvbox";
|
|
|
|
};
|
2023-09-14 14:45:40 +02:00
|
|
|
# Testing ARM NixOS
|
2023-09-14 14:46:57 +02:00
|
|
|
nixos-rpi-01 = libx.mkHost {
|
2023-09-14 14:45:40 +02:00
|
|
|
hostname = "nixos-rpi-01"; username = "albert"; platform = "";
|
|
|
|
};
|
2023-08-23 07:30:15 +02:00
|
|
|
};
|
2023-08-23 15:38:35 +02:00
|
|
|
homeConfigurations = {
|
2023-08-31 13:22:44 +02:00
|
|
|
"albert@nixos-laptop" = libx.mkHome {
|
|
|
|
hostname = "nixos-laptop"; username = "albert"; desktop = "hyprland"; theme = "gruvbox";
|
|
|
|
};
|
|
|
|
"albert@nixos-desktop" = libx.mkHome {
|
|
|
|
hostname = "nixos-desktop"; username = "albert"; desktop = "gnome"; theme = "gruvbox";
|
|
|
|
};
|
2023-08-23 07:30:15 +02:00
|
|
|
};
|
|
|
|
};
|
2023-09-01 03:47:46 +02:00
|
|
|
}
|