mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ self, config, lib, minimal, ... }:
|
|
let
|
|
primaryUser = config.swarselsystems.mainUser;
|
|
sharedOptions = {
|
|
isBtrfs = true;
|
|
isLinux = true;
|
|
profiles = {
|
|
toto = lib.mkIf (!minimal) true;
|
|
minimal = lib.mkIf minimal true;
|
|
};
|
|
};
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
./disk-config.nix
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
|
|
|
|
networking = {
|
|
hostName = "toto";
|
|
firewall.enable = false;
|
|
};
|
|
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
info = "~SwarselSystems~ remote install helper";
|
|
wallpaper = self + /files/wallpaper/lenovowp.png;
|
|
isImpermanence = true;
|
|
isCrypted = true;
|
|
isSecureBoot = false;
|
|
isSwap = true;
|
|
swapSize = "2G";
|
|
# rootDisk = "/dev/nvme0n1";
|
|
rootDisk = "/dev/vda";
|
|
profiles.btrfs = lib.mkIf minimal true;
|
|
# rootDisk = "/dev/vda";
|
|
}
|
|
sharedOptions;
|
|
|
|
home-manager.users.${primaryUser} = {
|
|
home.stateVersion = lib.mkForce "23.05";
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
isLaptop = false;
|
|
isNixos = true;
|
|
}
|
|
sharedOptions;
|
|
};
|
|
}
|