diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-08-28 23:27:52 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-08-28 23:27:52 -0700 |
| commit | 8dcf355819cc6cd1e87924218c1adcd900ecda84 (patch) | |
| tree | 940ef0f569279f4ab78c1320321ff4c07453eb5a /machines/hierophant/configuration.nix | |
| parent | 332b06fd9baefdfa2b043b8e2c72b8c110940fc5 (diff) | |
refactor base nixos modules
Diffstat (limited to 'machines/hierophant/configuration.nix')
| -rw-r--r-- | machines/hierophant/configuration.nix | 150 |
1 files changed, 2 insertions, 148 deletions
diff --git a/machines/hierophant/configuration.nix b/machines/hierophant/configuration.nix index a9a8d2c..01a2d25 100644 --- a/machines/hierophant/configuration.nix +++ b/machines/hierophant/configuration.nix @@ -1,12 +1,5 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - { - config, - lib, pkgs, - pkgs-unstable, ... }: @@ -16,158 +9,19 @@ ./hardware-configuration.nix ]; - security.polkit.enable = true; - boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelModules = [ "sg" ]; - - virtualisation.docker = { - enable = true; - }; - - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; - - services.avahi = { - enable = true; - nssmdns4 = true; - openFirewall = true; - }; - - services.printing = { - enable = true; - drivers = with pkgs; [ - cups-filters - cups-browsed - ]; - }; - - services.ipp-usb.enable = true; - - services.gnome.gnome-keyring.enable = true; - - services.tailscale = { - package = pkgs-unstable.tailscale; - enable = true; - extraSetFlags = [ "--ssh" ]; - extraDaemonFlags = [ "--no-logs-no-support" ]; - }; - - nixpkgs.config.allowUnfree = true; hardware.graphics.enable = true; - services.xserver.enable = true; services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia.open = true; - programs.steam.enable = true; - - services.displayManager.ly.enable = true; - services.displayManager.ly.x11Support = true; - services.xserver.displayManager.sessionCommands = '' xrandr --output DP-0 --mode 3840x2160 --rate 159.98 ''; - networking.hostName = "hierophant"; # Define your hostname. - # Pick only one of the below networking options. - # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - # networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - - # Set your time zone. - time.timeZone = "America/Los_Angeles"; - - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Select internationalisation properties. - i18n.defaultLocale = "en_US.UTF-8"; - # console = { - # font = "Lat2-Terminus16"; - # keyMap = "us"; - # useXkbConfig = true; # use xkb.options in tty. - # }; - - # Configure keymap in X11 - # services.xserver.xkb.layout = "us"; - # services.xserver.xkb.options = "eurosign:e,caps:escape"; - - # Enable CUPS to print documents. - # services.printing.enable = true; - - # Enable sound. - # services.pulseaudio.enable = true; - # OR - - security.rtkit.enable = true; - - services.pipewire = { - enable = true; - pulse.enable = true; - alsa.enable = true; - extraConfig.pipewire."10-clock-rates" = { - "context.properties" = { - "default.clock.rate" = 48000; - "default.clock.allowed-rates" = [ - 44100 - 48000 - ]; - }; - }; - }; - - # Enable touchpad support (enabled default in most desktopManager). - # services.libinput.enable = true; - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.kassouni = { - isNormalUser = true; - home = "/home/kassouni"; - extraGroups = [ - "wheel" - "video" - "docker" - "input" - "audio" - ]; # Enable 'sudo' for the user. - }; - - fonts.packages = with pkgs; [ - dejavu_fonts - ]; - - - # List packages installed in system profile. - # You can use https://search.nixos.org/ to find more packages (and options). - environment.systemPackages = with pkgs; [ ]; - - # Some programs need SUID wrappers, can be configured further or are - # started in user sessions. - # programs.mtr.enable = true; - # programs.gnupg.agent = { - # enable = true; - # enableSSHSupport = true; - # }; - - # List services that you want to enable: - - # Enable the OpenSSH daemon. - - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; - - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - + networking.hostName = "hierophant"; + # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # |
