From d657c42e7334ed8fbbb6622e54251cdb86a24f52 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 25 Dec 2023 13:31:43 +0100 Subject: [PATCH] edison: install steam --- base.nix | 5 ++++- hosts/edison/configuration.nix | 7 +++++++ hosts/edison/desktop.nix | 8 +++++++- hosts/edison/home.nix | 5 +++-- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/base.nix b/base.nix index 8991f1c..245406c 100644 --- a/base.nix +++ b/base.nix @@ -72,7 +72,10 @@ users.users.felixalb = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ + "wheel" + "docker" + ]; uid = 1000; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDKzPICGew7uN0cmvRmbwkwTCodTBUgEhkoftQnZuO4Q felixalbrigtsen@gmail.com" diff --git a/hosts/edison/configuration.nix b/hosts/edison/configuration.nix index 43b8a04..6d89efd 100644 --- a/hosts/edison/configuration.nix +++ b/hosts/edison/configuration.nix @@ -9,6 +9,8 @@ ./desktop.nix ]; + virtualisation.docker.enable = true; + networking = { hostName = "edison"; defaultGateway = "192.168.10.1"; @@ -26,9 +28,14 @@ pavucontrol ]; + programs.steam.enable = true; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "nvidia-x11" "nvidia-settings" + "steam" + "steam-original" + "steam-run" ]; system.stateVersion = "23.05"; diff --git a/hosts/edison/desktop.nix b/hosts/edison/desktop.nix index cfdc64b..06d66b3 100644 --- a/hosts/edison/desktop.nix +++ b/hosts/edison/desktop.nix @@ -7,8 +7,14 @@ layout = "us,no"; xkbVariant = "intl"; }; + + environment.systemPackages = with pkgs; [ + xfce.xfce4-pulseaudio-plugin + ]; + services.picom.enable = true; hardware.opengl.enable = true; + services.pipewire = { enable = true; alsa.enable = true; @@ -18,7 +24,7 @@ fonts = { fontDir.enable = true; - fonts = with pkgs; [ + packages = with pkgs; [ noto-fonts noto-fonts-emoji noto-fonts-cjk-sans diff --git a/hosts/edison/home.nix b/hosts/edison/home.nix index 7a2f874..22976b4 100644 --- a/hosts/edison/home.nix +++ b/hosts/edison/home.nix @@ -3,6 +3,7 @@ home.packages = with pkgs; [ bat bottom + mumble ncdu neofetch nix-index @@ -13,11 +14,11 @@ ]; programs = { + zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config"; alacritty.enable = true; firefox.enable = true; rofi.enable = true; - zsh.shellAliases."rebuild" = "sudo nixos-rebuild switch --flake /config"; - }; + }; home.stateVersion = "23.05"; }