2022-09-26 20:28:35 +00:00
|
|
|
{
|
2023-07-30 22:01:46 +00:00
|
|
|
inputs = {
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2024-11-12 20:03:29 +00:00
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2024-03-29 01:33:25 +00:00
|
|
|
|
2024-09-21 08:58:08 +00:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
|
2024-12-09 22:35:34 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
|
2024-11-28 00:56:19 +00:00
|
|
|
disko = {
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
};
|
|
|
|
|
2024-11-12 20:03:29 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-11-16 15:23:10 +00:00
|
|
|
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
|
2024-12-31 01:12:57 +00:00
|
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
2024-12-30 15:41:43 +00:00
|
|
|
|
|
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
2023-07-30 22:01:46 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
outputs =
|
2024-09-21 08:58:08 +00:00
|
|
|
{
|
2024-12-23 06:50:56 +00:00
|
|
|
agenix,
|
2024-11-28 00:56:19 +00:00
|
|
|
disko,
|
2024-12-19 00:57:38 +00:00
|
|
|
nixos-hardware,
|
2024-12-30 15:41:43 +00:00
|
|
|
nixos-wsl,
|
2024-09-21 08:58:08 +00:00
|
|
|
nixpkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}@inputs:
|
2024-03-18 20:33:28 +00:00
|
|
|
let
|
2024-11-05 12:00:00 +00:00
|
|
|
inherit (self) outputs;
|
|
|
|
|
2024-03-29 01:33:25 +00:00
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
username = "opdavies";
|
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
specialArgs = {
|
2024-12-23 00:28:59 +00:00
|
|
|
headless = false;
|
|
|
|
|
2024-11-05 12:00:00 +00:00
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
outputs
|
|
|
|
self
|
2024-11-26 08:13:46 +00:00
|
|
|
system
|
2024-11-05 12:00:00 +00:00
|
|
|
username
|
|
|
|
;
|
|
|
|
};
|
2024-02-24 10:21:53 +00:00
|
|
|
|
2024-05-06 13:36:44 +00:00
|
|
|
inherit (pkgs) mkShell;
|
2024-06-10 08:31:28 +00:00
|
|
|
in
|
|
|
|
{
|
2024-10-09 17:32:36 +00:00
|
|
|
packages.${system} = {
|
|
|
|
default = mkShell { buildInputs = with pkgs; [ bashInteractive ]; };
|
|
|
|
};
|
2024-03-18 20:33:28 +00:00
|
|
|
|
2024-06-10 08:31:28 +00:00
|
|
|
formatter.${system} = pkgs.nixfmt-rfc-style;
|
2023-03-30 18:15:51 +00:00
|
|
|
|
2024-11-20 21:37:15 +00:00
|
|
|
overlays = import ./nix/overlays { inherit inputs; };
|
2024-11-05 12:00:00 +00:00
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
nixosModules.default = ./nix/modules/nixos;
|
|
|
|
|
2024-03-29 01:33:25 +00:00
|
|
|
nixosConfigurations = {
|
2024-11-26 08:13:46 +00:00
|
|
|
lemp11 = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "lemp11";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "22.11";
|
2024-11-26 08:13:46 +00:00
|
|
|
};
|
2024-11-22 01:18:31 +00:00
|
|
|
|
2024-12-23 06:50:56 +00:00
|
|
|
modules = [
|
|
|
|
agenix.nixosModules.default
|
|
|
|
|
2025-01-08 08:54:14 +00:00
|
|
|
./nix/hosts/lemp11/configuration.nix
|
2024-12-23 06:50:56 +00:00
|
|
|
];
|
2024-09-11 12:00:00 +00:00
|
|
|
};
|
2024-11-28 00:56:19 +00:00
|
|
|
|
2024-12-28 09:26:54 +00:00
|
|
|
nixedo = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = specialArgs // {
|
|
|
|
headless = true;
|
|
|
|
hostname = "nixedo";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "24.11";
|
2024-12-28 09:26:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
modules = [
|
|
|
|
agenix.nixosModules.default
|
|
|
|
|
2025-01-08 08:54:14 +00:00
|
|
|
./nix/hosts/nixedo/configuration.nix
|
2024-12-28 09:26:54 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-12-19 00:57:38 +00:00
|
|
|
t490 = nixpkgs.lib.nixosSystem {
|
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "t490";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "22.11";
|
2024-12-19 00:57:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
modules = [
|
2024-12-23 06:50:56 +00:00
|
|
|
agenix.nixosModules.default
|
2024-12-19 00:57:38 +00:00
|
|
|
nixos-hardware.nixosModules.common-gpu-intel
|
|
|
|
nixos-hardware.nixosModules.lenovo-thinkpad-t490
|
2024-12-23 06:50:56 +00:00
|
|
|
|
2025-01-08 08:54:14 +00:00
|
|
|
./nix/hosts/t490/configuration.nix
|
2024-12-19 00:57:38 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-12-30 15:41:43 +00:00
|
|
|
PW05CH3L = nixpkgs.lib.nixosSystem {
|
2024-12-23 00:28:59 +00:00
|
|
|
inherit system;
|
|
|
|
|
|
|
|
specialArgs = specialArgs // {
|
|
|
|
headless = true;
|
2024-12-30 15:41:43 +00:00
|
|
|
hostname = "PW05CH3L";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "22.11";
|
2024-12-23 00:28:59 +00:00
|
|
|
};
|
2024-11-28 00:56:19 +00:00
|
|
|
|
|
|
|
modules = [
|
2024-12-26 00:13:42 +00:00
|
|
|
agenix.nixosModules.default
|
2024-11-28 00:56:19 +00:00
|
|
|
disko.nixosModules.disko
|
2024-12-30 15:41:43 +00:00
|
|
|
nixos-wsl.nixosModules.default
|
2024-12-26 00:13:42 +00:00
|
|
|
|
2025-01-08 08:54:14 +00:00
|
|
|
./nix/hosts/PW05CH3L/configuration.nix
|
2024-11-28 00:56:19 +00:00
|
|
|
];
|
|
|
|
};
|
2024-03-29 01:33:25 +00:00
|
|
|
|
2024-12-30 15:41:43 +00:00
|
|
|
hetznix = nixpkgs.lib.nixosSystem {
|
|
|
|
inherit system;
|
2024-11-26 08:13:46 +00:00
|
|
|
|
2024-12-30 15:41:43 +00:00
|
|
|
specialArgs = specialArgs // {
|
2024-12-23 00:28:59 +00:00
|
|
|
headless = true;
|
2024-11-26 08:13:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
modules = [
|
2024-12-30 15:41:43 +00:00
|
|
|
agenix.nixosModules.default
|
|
|
|
disko.nixosModules.disko
|
|
|
|
|
|
|
|
./nix/hosts/hetznix/configuration.nix
|
2024-11-26 08:13:46 +00:00
|
|
|
];
|
|
|
|
};
|
2024-06-10 08:31:28 +00:00
|
|
|
};
|
2022-09-26 20:28:35 +00:00
|
|
|
};
|
|
|
|
}
|