Add a second nixosConfigurations entry for a friend's machine running Plasma 6 + SDDM. The hardware-configuration.nix is a placeholder; it must be replaced with the output of nixos-generate-config on the actual hardware before installing. Git identity in hosts/nikita-nixos/ home.nix is also a placeholder.
41 lines
948 B
Nix
41 lines
948 B
Nix
{
|
|
description = "Personal NixOS Setup";
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-26.05";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-26.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, ... }:
|
|
let
|
|
mkHost = { hostPath, username, homePath }: nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
hostPath
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.${username} = import homePath;
|
|
backupFileExtension = "backup";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
in {
|
|
nixosConfigurations.hivebrain = mkHost {
|
|
hostPath = ./hosts/hivebrain;
|
|
username = "marvin";
|
|
homePath = ./hosts/hivebrain/home.nix;
|
|
};
|
|
nixosConfigurations.nikita-nixos = mkHost {
|
|
hostPath = ./hosts/nikita-nixos;
|
|
username = "nikita";
|
|
homePath = ./hosts/nikita-nixos/home.nix;
|
|
};
|
|
};
|
|
}
|