separated out the bits of my config so I can have two computers
This commit is contained in:
@@ -15,29 +15,43 @@
|
||||
outputs = { self, nixpkgs, home-manager, nix-flatpak, musnix, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
commonModules = [
|
||||
musnix.nixosModules.musnix
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users.cybrneko = { pkgs, ... }: {
|
||||
imports = [
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
./home.nix
|
||||
./users/cybrneko.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
in {
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
nixosConfigurations = {
|
||||
artemis = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
./configuration.nix
|
||||
|
||||
musnix.nixosModules.musnix
|
||||
modules = [
|
||||
./artemis.nix
|
||||
] ++ commonModules;
|
||||
};
|
||||
|
||||
home-manager.nixosModules.home-manager
|
||||
athena = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.cybrneko = { pkgs, ... }: {
|
||||
imports = [
|
||||
nix-flatpak.homeManagerModules.nix-flatpak
|
||||
./home.nix
|
||||
./users/cybrneko.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
modules = [
|
||||
./athena.nix
|
||||
] ++ commonModules;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user