diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-17 18:14:22 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-09-17 18:14:22 +0200 |
| commit | fe0e613928323f9dc538f1bdea8138456abffc4b (patch) | |
| tree | 019728342ae0f3329ab9ff631c02e55e4472f18a /common/default.nix | |
create nix configuration
Diffstat (limited to 'common/default.nix')
| -rw-r--r-- | common/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/common/default.nix b/common/default.nix new file mode 100644 index 0000000..1641316 --- /dev/null +++ b/common/default.nix @@ -0,0 +1,63 @@ +{ + config, + pkgs, + home-manager, + nixvim, + webtray, + ... +}: +{ + imports = [ + home-manager.nixosModules.default + webtray.outputs.nixosModules.default + ]; + + environment.systemPackages = with pkgs; [ + pciutils + usbutils + acpi + cargo + rustc + rustfmt + nixfmt-rfc-style + blueberry + gimp + inkscape + hicolor-icon-theme + ]; + + fonts.packages = with pkgs; [ nerdfonts ]; + + networking.networkmanager.enable = true; + + time.timeZone = "Europe/Zurich"; + + i18n.defaultLocale = "en_US.UTF-8"; + console = { + font = "Lat2-Terminus16"; + keyMap = "us"; + }; + + users = import ./users.nix { inherit pkgs; }; + programs = import ./programs { inherit pkgs; }; + services = import ./services { inherit pkgs; }; + home-manager = import ./home { + inherit pkgs; + inherit nixvim; + inherit config; + }; + + security.pam.services.hyprlock = { }; + security.rtkit.enable = true; + + hardware.bluetooth.enable = true; + + environment.shellAliases = { + dmenu-wl = "wofi --show dmenu"; + }; + + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; +} |