diff options
| author | mtgmonkey <mtgmonkey@nixos> | 2025-12-28 20:12:01 +0100 |
|---|---|---|
| committer | mtgmonkey <mtgmonkey@nixos> | 2025-12-28 20:12:01 +0100 |
| commit | 160bdcfb42bf462d7d54edf28a5a4dd6e009f2d1 (patch) | |
| tree | fdc29fce6f4ba9aee41708e4819dd165999fefdc /configuration.nix | |
init
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..6ac1f89 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,74 @@ +{lib, ...}: { + boot.loader = { + efi.canTouchEfiVariables = true; + limine = { + enable = true; + efiSupport = true; + }; + timeout = lib.mkDefault 2; + }; + environment.persistence."/persist" = { + enable = true; + hideMounts = true; + directories = [ + "/var/log" + "/var/lib/bluetooth" + "/var/lib/nixos" + "/var/lib/systemd/coredump" + "/etc/NetworkManager/system-connections" + ]; + users."mtgmonkey" = { + directories = [ + "Downloads" + ".backups" + ".ssh" + ]; + }; + }; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; + i18n.defaultLocale = "de_DE.UTF-8"; + networking = { + dhcpcd.enable = true; + firewall.enable = true; + hostName = "nixos"; + networkmanager.enable = true; + }; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-unwrapped" + "steam-run" + ]; + programs = { + noshell.enable = true; + steam.enable = true; + sway.enable = true; + }; + services = { + blueman.enable = true; + displayManager = { + enable = true; + ly.enable = true; + }; + libinput.enable = true; + printing.enable = true; + }; + system.stateVersion = "26.05"; + time.timeZone = "Europe/Berlin"; + users.users."mtgmonkey" = { + isNormalUser = true; + description = "mtgmonkey"; + extraGroups = [ + "networkmanager" + "wheel" + ]; + }; +} |
