93 lines
2.2 KiB
Nix
Executable file
93 lines
2.2 KiB
Nix
Executable file
{ inputs, outputs, profile-config, pkgs, ... }:
|
|
|
|
{
|
|
nixpkgs.config.allowUnfree = true;
|
|
imports = [
|
|
#profile-config.overlays
|
|
inputs.home-manager.nixosModules.home-manager
|
|
./packages.nix
|
|
];
|
|
|
|
services.locate = {
|
|
enable = true;
|
|
interval = "daily";
|
|
package = pkgs.plocate;
|
|
localuser = null;
|
|
};
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users = builtins.listToAttrs (builtins.map(
|
|
u-conf: {
|
|
inherit inputs;
|
|
name = u-conf.name;
|
|
value = import u-conf.config { inherit pkgs inputs outputs; user = u-conf.name; };
|
|
}
|
|
)profile-config.user-configs);
|
|
|
|
users.users = builtins.listToAttrs (builtins.map(
|
|
u-conf: {
|
|
name = u-conf.name;
|
|
value = {
|
|
initialPassword = "${u-conf.name}";
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "audio" "video" "input"];
|
|
};
|
|
}
|
|
)profile-config.user-configs);
|
|
|
|
boot.loader = {
|
|
efi.canTouchEfiVariables = true;
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
};
|
|
};
|
|
|
|
time.timeZone = "Europe/Zurich";
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console.keyMap = "de";
|
|
# Remove unnecessary packages
|
|
environment.gnome.excludePackages =
|
|
(with pkgs; [
|
|
gnome-photos
|
|
gnome-tour
|
|
gedit
|
|
]) ++
|
|
(with pkgs.gnome; [
|
|
epiphany
|
|
geary
|
|
totem
|
|
tali
|
|
iagno
|
|
hitori
|
|
atomix
|
|
]);
|
|
services.xserver.excludePackages = [ pkgs.xterm ];
|
|
documentation.nixos.enable = false;
|
|
# Set the keyboard layout to german
|
|
services.xserver.xkb.layout= "de";
|
|
# Eable CUPS
|
|
services.printing.enable = true;
|
|
# Sound settings
|
|
sound.enable = true;
|
|
hardware.pulseaudio.enable = false;
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
jack.enable = true;
|
|
pulse.enable = true;
|
|
wireplumber.enable = true;
|
|
alsa.support32Bit = true;
|
|
};
|
|
services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
|
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
};
|
|
system.stateVersion = "23.11";
|
|
}
|