nixos-config/flake.nix

66 lines
1.9 KiB
Nix
Raw Normal View History

2024-03-08 22:46:38 +01:00
{
description = "NixOS configuration flake";
inputs = {
2024-11-13 22:10:09 +01:00
disko.url = "github:nix-community/disko";
2024-12-04 21:54:04 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
home-manager.url = "github:nix-community/home-manager/release-24.11";
2024-03-09 22:37:11 +01:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-03-08 22:46:38 +01:00
};
2024-11-13 22:10:09 +01:00
outputs = { self, nixpkgs, home-manager, disko,...}:
2024-03-08 22:46:38 +01:00
let
2024-03-09 22:37:11 +01:00
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2024-03-08 22:46:38 +01:00
in {
nixosConfigurations = {
2024-03-09 22:37:11 +01:00
lift = nixpkgs.lib.nixosSystem {
2024-07-07 21:56:12 +02:00
inherit system;
2024-03-09 22:37:11 +01:00
modules = [
./configuration.nix
./sway.nix
./hardware-configuration.nix
];
};
2024-11-13 22:10:09 +01:00
tien = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
disko.nixosModules.disko
./vps-configuration.nix
./vps-hardware-configuration.nix
];
};
2024-03-09 22:37:11 +01:00
};
homeConfigurations = {
"rothe@lift" = home-manager.lib.homeManagerConfiguration {
2024-03-09 22:37:11 +01:00
inherit pkgs;
modules = [
./home/rothe.nix
./home/wayland
];
extraSpecialArgs = {
2024-11-15 10:25:33 +01:00
mail = nixpkgs.lib.strings.concatStrings ["mail" "@" "johannes-rothe.de"];
};
};
"rothe@johannes-powermachine" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home/rothe.nix
];
extraSpecialArgs = {
2024-11-15 10:25:33 +01:00
mail = nixpkgs.lib.strings.concatStrings ["mail" "@" "johannes-rothe.de"];
};
2024-03-08 22:46:38 +01:00
};
2024-09-29 22:21:13 +02:00
"rothe@pdemu1cml000301" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home/rothe.nix
];
extraSpecialArgs = {
2024-11-15 10:25:33 +01:00
mail = nixpkgs.lib.strings.concatStrings ["rothe" "@" "magazino.eu"];
};
2024-09-29 22:21:13 +02:00
};
2024-03-08 22:46:38 +01:00
};
};
}