diff --git a/common.nix b/common.nix index beab9706..2681406c 100644 --- a/common.nix +++ b/common.nix @@ -1,7 +1,75 @@ { config, pkgs, ... }: { - imports = [ ./gpg.nix ]; + imports = [ + ./users.nix + ./gpg.nix + ]; + system.stateVersion = "24.05"; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + time.timeZone = "Europe/Helsinki"; + + i18n = { + defaultLocale = "en_US.UTF-8"; + + extraLocaleSettings = { + LC_ADDRESS = "fi_FI.UTF-8"; + LC_IDENTIFICATION = "fi_FI.UTF-8"; + LC_MEASUREMENT = "fi_FI.UTF-8"; + LC_MONETARY = "fi_FI.UTF-8"; + LC_NAME = "fi_FI.UTF-8"; + LC_NUMERIC = "fi_FI.UTF-8"; + LC_PAPER = "fi_FI.UTF-8"; + LC_TELEPHONE = "fi_FI.UTF-8"; + LC_TIME = "fi_FI.UTF-8"; + }; + }; + + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + }; + + services = { + xserver = { + enable = true; + displayManager.gdm.enable = true; + desktopManager.gnome.enable = true; + + xkb = { + layout = "us"; + variant = ""; + }; + }; + + pipewire = { + enable = true; + pulse.enable = true; + }; + }; + + hardware.pulseaudio.enable = false; + + security.rtkit.enable = true; + + programs.firefox = { + enable = true; + nativeMessagingHosts.packages = [ pkgs.browserpass ]; + }; + + environment.systemPackages = with pkgs; [ + neovim + telegram-desktop + zsh + neofetch + usbutils + wl-clipboard + git + pass + gnumake + ]; } diff --git a/hosts/Mirkwood/configuration.nix b/hosts/Mirkwood/configuration.nix index 43ab88ea..4757cd8c 100644 --- a/hosts/Mirkwood/configuration.nix +++ b/hosts/Mirkwood/configuration.nix @@ -12,79 +12,5 @@ wireless.iwd.enable = true; }; - boot = { - initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d"; - loader = { - systemd-boot.enable = true; - efi.canTouchEfiVariables = true; - }; - }; - - # Set your time zone. - time.timeZone = "Europe/Helsinki"; - - i18n = { - defaultLocale = "en_US.UTF-8"; - - extraLocaleSettings = { - LC_ADDRESS = "fi_FI.UTF-8"; - LC_IDENTIFICATION = "fi_FI.UTF-8"; - LC_MEASUREMENT = "fi_FI.UTF-8"; - LC_MONETARY = "fi_FI.UTF-8"; - LC_NAME = "fi_FI.UTF-8"; - LC_NUMERIC = "fi_FI.UTF-8"; - LC_PAPER = "fi_FI.UTF-8"; - LC_TELEPHONE = "fi_FI.UTF-8"; - LC_TIME = "fi_FI.UTF-8"; - }; - }; - - services = { - xserver = { - enable = true; - displayManager.gdm.enable = true; - desktopManager.gnome.enable = true; - - xkb = { - layout = "us"; - variant = ""; - }; - }; - - pipewire = { - enable = true; - alsa.enable = true; - alsa.support32Bit = true; - pulse.enable = true; - }; - }; - - hardware.pulseaudio.enable = false; - security.rtkit.enable = true; - - users.users.functionalhacker = { - isNormalUser = true; - description = "Marko Korhonen"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - # thunderbird - ]; - }; - - programs.firefox = { - enable = true; - nativeMessagingHosts.packages = [ pkgs.browserpass ]; - }; - - environment.systemPackages = with pkgs; [ - neovim - telegram-desktop - zsh - neofetch - usbutils - wl-clipboard - git - pass - gnumake - ]; + boot.initrd.luks.devices."luks-cf2ca44e-d8d1-4ec8-a072-921f29ed693d".device = "/dev/disk/by-uuid/cf2ca44e-d8d1-4ec8-a072-921f29ed693d"; } diff --git a/users.nix b/users.nix new file mode 100644 index 00000000..1316b409 --- /dev/null +++ b/users.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + users.users = { + functionalhacker = { + isNormalUser = true; + description = "Marko"; + extraGroups = [ "networkmanager" "wheel" ]; + }; + + som = { + isNormalUser = true; + description = "Som"; + extraGroups = [ "networkmanager" ]; + }; + }; +}