2022-09-26 21:28:35 +01:00
|
|
|
{
|
2023-07-30 23:01:46 +01:00
|
|
|
inputs = {
|
2024-12-09 22:35:34 +00:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
|
2025-06-01 23:22:09 +01:00
|
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
|
|
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
2025-03-08 21:00:55 +00:00
|
|
|
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
|
2025-04-23 17:28:26 +01:00
|
|
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
|
|
|
|
2025-06-02 02:09:06 +01:00
|
|
|
nixvim.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nixvim.url = "github:nix-community/nixvim";
|
|
|
|
|
2025-04-23 17:19:16 +01:00
|
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
2025-04-23 17:28:26 +01:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2025-02-13 22:53:24 +00:00
|
|
|
|
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-07-30 23:01:46 +01:00
|
|
|
};
|
2022-09-26 21:28:35 +01:00
|
|
|
|
2024-06-10 09:31:28 +01:00
|
|
|
outputs =
|
2025-06-01 00:32:00 +01: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";
|
2025-01-29 01:15:42 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2024-03-29 01:33:25 +00:00
|
|
|
|
2024-03-18 20:33:28 +00:00
|
|
|
username = "opdavies";
|
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
specialArgs = {
|
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 14:36:44 +01:00
|
|
|
inherit (pkgs) mkShell;
|
2025-06-12 12:13:49 +01:00
|
|
|
|
|
|
|
neovimWithConfig = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule {
|
|
|
|
inherit pkgs;
|
|
|
|
|
2025-06-12 13:00:10 +01:00
|
|
|
module = import ./modules/home-manager/coding/neovim/config;
|
2025-06-12 12:13:49 +01:00
|
|
|
};
|
2024-06-10 09:31:28 +01:00
|
|
|
in
|
|
|
|
{
|
2025-05-20 11:53:06 +01:00
|
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
|
|
packages = with pkgs; [
|
2025-05-20 22:28:40 +01:00
|
|
|
just
|
2025-05-22 08:53:04 +01:00
|
|
|
lua-language-server
|
|
|
|
lua54Packages.luacheck
|
2025-05-20 11:53:06 +01:00
|
|
|
nixd
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-10-09 18:32:36 +01:00
|
|
|
packages.${system} = {
|
2025-04-06 22:57:46 +01:00
|
|
|
default = mkShell { buildInputs = with pkgs; [ just ]; };
|
2025-06-12 12:13:49 +01:00
|
|
|
|
|
|
|
nvim = neovimWithConfig;
|
2024-10-09 18:32:36 +01:00
|
|
|
};
|
2024-03-18 20:33:28 +00:00
|
|
|
|
2024-06-10 09:31:28 +01:00
|
|
|
formatter.${system} = pkgs.nixfmt-rfc-style;
|
2023-03-30 19:15:51 +01:00
|
|
|
|
2025-03-29 23:19:06 +00:00
|
|
|
overlays = import ./overlays { inherit inputs; };
|
2024-11-05 12:00:00 +00:00
|
|
|
|
2025-04-23 14:19:05 +01:00
|
|
|
homeManagerModules.default = import ./modules/home-manager;
|
|
|
|
|
|
|
|
nixosModules.default = import ./modules/nixos;
|
|
|
|
|
2024-03-29 01:33:25 +00:00
|
|
|
nixosConfigurations = {
|
2024-11-26 08:13:46 +00:00
|
|
|
lemp11 = nixpkgs.lib.nixosSystem {
|
2025-06-01 15:21:20 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/lemp11/configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-11-26 08:13:46 +00:00
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "lemp11";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "22.11";
|
2024-11-26 08:13:46 +00:00
|
|
|
};
|
2025-06-01 15:21:20 +01:00
|
|
|
};
|
2024-11-22 01:18:31 +00:00
|
|
|
|
2025-06-01 15:21:20 +01:00
|
|
|
nixedo = nixpkgs.lib.nixosSystem {
|
2024-12-23 06:50:56 +00:00
|
|
|
modules = [
|
2025-06-01 15:21:20 +01:00
|
|
|
./hosts/nixedo/configuration.nix
|
2024-12-23 06:50:56 +00:00
|
|
|
];
|
2024-11-28 00:56:19 +00:00
|
|
|
|
2024-12-28 09:26:54 +00:00
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "nixedo";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "24.11";
|
2024-12-28 09:26:54 +00:00
|
|
|
};
|
2025-06-01 15:21:20 +01:00
|
|
|
};
|
2024-12-28 09:26:54 +00:00
|
|
|
|
2025-06-01 15:21:20 +01:00
|
|
|
t480 = nixpkgs.lib.nixosSystem {
|
2024-12-28 09:26:54 +00:00
|
|
|
modules = [
|
2025-06-01 15:21:20 +01:00
|
|
|
./hosts/t480/configuration.nix
|
2024-12-28 09:26:54 +00:00
|
|
|
];
|
|
|
|
|
2025-03-21 15:01:39 +00:00
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "t480";
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
2025-06-01 15:21:20 +01:00
|
|
|
};
|
2025-03-21 15:01:39 +00:00
|
|
|
|
2025-06-01 15:21:20 +01:00
|
|
|
t490 = nixpkgs.lib.nixosSystem {
|
2025-03-21 15:01:39 +00:00
|
|
|
modules = [
|
2025-06-01 15:21:20 +01:00
|
|
|
./hosts/t490/configuration.nix
|
2025-03-21 15:01:39 +00:00
|
|
|
];
|
|
|
|
|
2024-12-19 00:57:38 +00:00
|
|
|
specialArgs = specialArgs // {
|
|
|
|
hostname = "t490";
|
2024-12-30 17:43:49 +00:00
|
|
|
stateVersion = "22.11";
|
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;
|
|
|
|
|
2025-06-01 15:21:20 +01:00
|
|
|
modules = [
|
|
|
|
./hosts/PW05CH3L/configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-12-23 00:28:59 +00:00
|
|
|
specialArgs = specialArgs // {
|
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
|
|
|
};
|
2024-06-10 09:31:28 +01:00
|
|
|
};
|
2022-09-26 21:28:35 +01:00
|
|
|
};
|
|
|
|
}
|