nicks-nix-config/hosts/default.nix

42 lines
972 B
Nix
Raw Normal View History

2022-11-08 19:08:54 -08:00
{ lib, inputs, nixpkgs, home-manager, user, kmonad, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
NicksNixLaptop = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./configuration.nix
./laptop
../modules/plasma_desktop.nix
../modules/kmonad.nix
2022-11-08 19:22:24 -08:00
{
networking.hostname = "NicksNixLaptop";
}
2022-11-08 19:08:54 -08:00
kmonad.nixosModules.default
home-manager.nixosModules.home-manager {
2022-11-08 19:10:46 -08:00
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
./home.nix
../modules/git.nix
../modules/urxvt.nix
../modules/vim.nix
../modules/zsh.nix
];
};
2022-11-08 19:08:54 -08:00
};
}
];
};
}