2024-12-19 08:00:00 +00:00
|
|
|
{
|
2024-12-30 17:43:49 +00:00
|
|
|
headless,
|
2024-12-19 08:00:00 +00:00
|
|
|
hostname,
|
|
|
|
inputs,
|
|
|
|
outputs,
|
2024-12-30 17:43:49 +00:00
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
stateVersion,
|
|
|
|
system,
|
|
|
|
username,
|
2024-12-19 08:00:00 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
|
|
|
|
outputs.nixosModules.default
|
2024-12-30 17:43:49 +00:00
|
|
|
|
|
|
|
./programs.nix
|
|
|
|
./users.nix
|
2024-12-19 08:00:00 +00:00
|
|
|
];
|
|
|
|
|
2024-12-30 17:43:49 +00:00
|
|
|
environment.systemPackages =
|
|
|
|
with pkgs;
|
|
|
|
[
|
|
|
|
fastfetch
|
|
|
|
mermaid-cli
|
|
|
|
mkcert
|
|
|
|
]
|
|
|
|
++ pkgs.lib.optionals (!headless) [
|
|
|
|
acpi
|
|
|
|
arandr
|
|
|
|
brightnessctl
|
|
|
|
cpufrequtils
|
|
|
|
libnotify
|
|
|
|
pmutils
|
|
|
|
ffmpegthumbnailer
|
|
|
|
libreoffice
|
|
|
|
logseq
|
|
|
|
shotwell
|
|
|
|
vscode
|
|
|
|
xfce.thunar
|
|
|
|
xfce.thunar-volman
|
|
|
|
xfce.tumbler
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager = {
|
|
|
|
extraSpecialArgs = {
|
|
|
|
inherit
|
|
|
|
hostname
|
|
|
|
inputs
|
|
|
|
outputs
|
|
|
|
headless
|
|
|
|
self
|
|
|
|
system
|
|
|
|
username
|
|
|
|
;
|
|
|
|
};
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
|
|
|
|
|
|
|
users."${username}" = import "${self}/nix/home/${username}";
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
2024-12-30 17:43:49 +00:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
|
|
|
|
permittedInsecurePackages = [ "electron-27.3.11" ];
|
|
|
|
};
|
2024-12-30 17:43:49 +00:00
|
|
|
|
|
|
|
overlays = [
|
|
|
|
outputs.overlays.additions
|
|
|
|
outputs.overlays.modifications
|
|
|
|
outputs.overlays.stable-packages
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.extraOptions = ''
|
|
|
|
trusted-users = root ${username}
|
|
|
|
'';
|
|
|
|
|
2024-12-19 08:00:00 +00:00
|
|
|
networking.hostName = hostname;
|
2024-12-30 17:43:49 +00:00
|
|
|
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
|
|
|
extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "en_GB.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "en_GB.UTF-8";
|
|
|
|
LC_MEASUREMENT = "en_GB.UTF-8";
|
|
|
|
LC_MONETARY = "en_GB.UTF-8";
|
|
|
|
LC_NAME = "en_GB.UTF-8";
|
|
|
|
LC_NUMERIC = "en_GB.UTF-8";
|
|
|
|
LC_PAPER = "en_GB.UTF-8";
|
|
|
|
LC_TELEPHONE = "en_GB.UTF-8";
|
|
|
|
LC_TIME = "en_GB.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
console.keyMap = "uk";
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
system.stateVersion = stateVersion;
|
2024-12-19 08:00:00 +00:00
|
|
|
}
|