mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
64 lines
1.3 KiB
Nix
64 lines
1.3 KiB
Nix
{ self, config, pkgs, lib, minimal, ... }:
|
|
let
|
|
mainUser = "demo";
|
|
sharedOptions = {
|
|
inherit mainUser;
|
|
isBtrfs = false;
|
|
isLinux = true;
|
|
isPublic = true;
|
|
};
|
|
in
|
|
{
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
{
|
|
_module.args.diskDevice = config.swarselsystems.rootDisk;
|
|
}
|
|
];
|
|
|
|
environment.variables = {
|
|
WLR_RENDERER_ALLOW_SOFTWARE = 1;
|
|
};
|
|
|
|
services.qemuGuest.enable = true;
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = lib.mkForce true;
|
|
loader.efi.canTouchEfiVariables = true;
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
networking = {
|
|
hostName = "chaostheatre";
|
|
firewall.enable = true;
|
|
};
|
|
|
|
swarselprofiles = {
|
|
chaostheatre = lib.mkIf (!minimal) true;
|
|
minimal = lib.mkIf minimal true;
|
|
btrfs = true;
|
|
};
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
info = "~SwarselSystems~ demo host";
|
|
wallpaper = self + /files/wallpaper/lenovowp.png;
|
|
isImpermanence = true;
|
|
isCrypted = true;
|
|
isSecureBoot = false;
|
|
isSwap = true;
|
|
swapSize = "4G";
|
|
rootDisk = "/dev/vda";
|
|
}
|
|
sharedOptions;
|
|
|
|
home-manager.users.${mainUser} = {
|
|
home.stateVersion = lib.mkForce "23.05";
|
|
swarselsystems = lib.recursiveUpdate
|
|
{
|
|
isNixos = true;
|
|
}
|
|
sharedOptions;
|
|
};
|
|
}
|