refactor: move nixosSystems out of flake

This commit is contained in:
notohh 2023-05-12 05:27:17 -04:00
parent f3fe014558
commit 565bfa66d8
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 72 additions and 53 deletions

View file

@ -27,7 +27,6 @@
...
} @ inputs: let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = import nixpkgs {
inherit system;
};
@ -47,57 +46,6 @@
};
deploy = import ./hosts/deploy.nix inputs;
formatter.${system} = pkgs.alejandra;
nixosConfigurations = {
tsuki = lib.nixosSystem {
inherit system;
modules = [
./hosts/tsuki
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
users.notoh = {
imports = [
hyprland.homeManagerModules.default
./hosts/tsuki/home.nix
];
};
};
}
];
};
hime = lib.nixosSystem {
inherit system;
modules = [
./hosts/hime
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.oh = {imports = [./hosts/hime/home.nix];};
};
}
];
};
sutakku = lib.nixosSystem {
inherit system;
modules = [
./hosts/sutakku
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.oh = {
imports = [./hosts/sutakku/home.nix];
};
};
}
];
};
};
nixosConfigurations = import ./hosts/systems.nix inputs;
};
}

71
hosts/systems.nix Normal file
View file

@ -0,0 +1,71 @@
inputs: let
system = "x86_64-linux";
inherit (inputs.nixpkgs.lib) nixosSystem;
in {
tsuki = nixosSystem {
inherit system;
modules = [
./tsuki
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
users.notoh = {
imports = [
inputs.hyprland.homeManagerModules.default
./tsuki/home.nix
];
};
};
}
];
};
hime = nixosSystem {
inherit system;
modules = [
./hime
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.oh = {imports = [./hime/home.nix];};
};
}
];
};
sutakku = nixosSystem {
inherit system;
modules = [
./sutakku
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.oh = {
imports = [./sutakku/home.nix];
};
};
}
];
};
sakura = nixosSystem {
inherit system;
modules = [
./sakura
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.notoh = {
imports = [./sakura/home.nix];
};
};
}
];
};
}