From d3be213bd899c9d400350962f5e5c97698ab6bbb Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 3 Sep 2024 19:07:26 +0200 Subject: [PATCH] pearl: setup --- common/desktop.nix | 1 - hosts/pearl/apps.nix | 37 +++++++++++++++++++++++++++++++ hosts/pearl/default.nix | 49 +++++++++++++++++++++++++---------------- 3 files changed, 67 insertions(+), 20 deletions(-) create mode 100644 hosts/pearl/apps.nix diff --git a/common/desktop.nix b/common/desktop.nix index bfa8c5f..cb2ee7b 100644 --- a/common/desktop.nix +++ b/common/desktop.nix @@ -50,7 +50,6 @@ in defaultFonts = { serif = [ "Liberation Serif" ]; sansSerif = [ "Inter" ]; - monospace = [ "BerkeleyMono Nerd Font" ]; }; hinting.enable = true; hinting.style = "slight"; diff --git a/hosts/pearl/apps.nix b/hosts/pearl/apps.nix new file mode 100644 index 0000000..b856fea --- /dev/null +++ b/hosts/pearl/apps.nix @@ -0,0 +1,37 @@ +{ + lib, + pkgs, + ... +}: +{ + programs.firefox.enable = true; + + environment.systemPackages = with pkgs; [ + calibre + gimp + gnomeExtensions.emoji-copy + gnomeExtensions.just-perfection + gnomeExtensions.vitals + gnome-pomodoro + gnome-tweaks + hitori + inkscape + krita + moonlight-qt + obsidian + pavucontrol + plexamp + signal-desktop + ]; + + environment.gnome.excludePackages = + [ + ]; + + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + }; +} diff --git a/hosts/pearl/default.nix b/hosts/pearl/default.nix index 226044c..a44a372 100644 --- a/hosts/pearl/default.nix +++ b/hosts/pearl/default.nix @@ -8,7 +8,10 @@ ... }: { - imports = [ ./hardware-configuration.nix ]; + imports = [ + ./hardware-configuration.nix + ./apps.nix + ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -25,14 +28,9 @@ hardware.enableAllFirmware = true; - #environment.systemPackages = with pkgs; [ - #]; - services.printing.enable = true; services.printing.drivers = [ pkgs.brlaser ]; - programs.adb.enable = true; - networking = { hostName = "pearl"; domain = "aarn.patagia.dev"; @@ -48,17 +46,30 @@ time.timeZone = "Europe/Stockholm"; - users.users.dln = { - isNormalUser = true; - description = "Daniel Lundin"; - extraGroups = [ - "lp" - "wheel" - ]; - openssh.authorizedKeys.keys = [ - "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAILwakA+EeuR23vRhjvjMkzK+FtWIhpnbs7z1pfnBehCUAAAABHNzaDo= dln@dinky" - "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIJNOBFoU7Cdsgi4KpYRcv7EhR/8kD4DYjEZnwk6urRx7AAAABHNzaDo= dln@nemo" - ]; + users.users = { + annso = { + isNormalUser = true; + description = "Ann-Sofie Stenberg"; + extraGroups = [ + "lp" + "video" + "audio" + "wheel" + ]; + }; + + dln = { + isNormalUser = true; + description = "Daniel Lundin"; + extraGroups = [ + "lp" + "wheel" + ]; + openssh.authorizedKeys.keys = [ + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAILwakA+EeuR23vRhjvjMkzK+FtWIhpnbs7z1pfnBehCUAAAABHNzaDo= dln@dinky" + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIJNOBFoU7Cdsgi4KpYRcv7EhR/8kD4DYjEZnwk6urRx7AAAABHNzaDo= dln@nemo" + ]; + }; }; patagia = { @@ -71,7 +82,7 @@ systemd.services."getty@tty1".enable = false; systemd.services."autovt@tty1".enable = false; - # Enable the X11 windowing system. + # Enable the X11 windowing system. services.xserver.enable = true; # Enable the GNOME Desktop Environment. @@ -81,7 +92,7 @@ # Configure keymap in X11 services.xserver.xkb = { layout = "se"; - variant = "us"; + # variant = "us"; }; # Configure console keymap