mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ self, inputs, pkgs, lib, primaryUser, ... }:
|
|
let
|
|
profilesPath = "${self}/profiles";
|
|
sharedOptions = {
|
|
isBtrfs = true;
|
|
};
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
# ---- nixos-hardware here ----
|
|
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
|
|
"${profilesPath}/nixos/optional/virtualbox.nix"
|
|
# "${profilesPath}/nixos/optional/vmware.nix"
|
|
"${profilesPath}/nixos/optional/autologin.nix"
|
|
"${profilesPath}/nixos/optional/nswitch-rcm.nix"
|
|
"${profilesPath}/nixos/optional/gaming.nix"
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.users."${primaryUser}".imports = [
|
|
"${profilesPath}/home/optional/gaming.nix"
|
|
];
|
|
}
|
|
];
|
|
|
|
boot = {
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "TEMPLATE";
|
|
firewall.enable = true;
|
|
};
|
|
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
wallpaper = self + /wallpaper/lenovowp.png;
|
|
hasBluetooth = true;
|
|
hasFingerprint = true;
|
|
isImpermanence = true;
|
|
isSecureBoot = true;
|
|
isCrypted = true;
|
|
isSwap = true;
|
|
swapSize = "32G";
|
|
rootDisk = "TEMPLATE";
|
|
}
|
|
sharedOptions;
|
|
|
|
home-manager.users."${primaryUser}".swarselsystems = lib.recursiveUpdate
|
|
{
|
|
isLaptop = true;
|
|
isNixos = true;
|
|
cpuCount = 16;
|
|
}
|
|
sharedOptions;
|
|
}
|