{ pkgs, emacs-larstvei, zen-browser, ... }: let v = import ./variables.nix; in { imports = [ ../../system ../../system/nixos ./keyboard.nix ./hardware-configuration.nix ]; home-manager = { useGlobalPkgs = true; useUserPackages = true; extraSpecialArgs = { inherit emacs-larstvei; inherit zen-browser; }; users.${v.username}.imports = [ ../../home ../../home/desktop ]; }; services.greetd = { enable = true; settings = { default_session = { command = "hyprland"; user = v.username; }; }; }; users.users.${v.username} = { isNormalUser = true; description = "Lars Tveito"; home = v.userHome; shell = pkgs.fish; extraGroups = [ "networkmanager" "wheel" ]; }; networking.hostName = v.hostName; console.keyMap = "us"; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; # Enable networking networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/Oslo"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; # Enable CUPS to print documents. services.printing.enable = true; # Enable sound with pipewire. services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "25.05"; # Did you read the comment? }