From 42743afe59bbb7535d8a7ec30ce206f89a3c7a55 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 30 Nov 2020 19:56:11 -0500 Subject: helium: use urxvt, fix xmonad, and pin nixpkgs --- machines/helium.nix | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'machines/helium.nix') diff --git a/machines/helium.nix b/machines/helium.nix index 0f49443..9c75b18 100644 --- a/machines/helium.nix +++ b/machines/helium.nix @@ -1,6 +1,14 @@ { config, lib, pkgs, ... }: -{ +let + nixpkgs = builtins.fetchTarball (import ../nixpkgs.nix); +in { + + security = { + sudo = { + wheelNeedsPassword = false; + }; + }; networking = { hostName = "helium"; @@ -14,6 +22,10 @@ fira fira-code fira-code-symbols ]; + environment.systemPackages = [ + pkgs.brightnessctl + ]; + nixpkgs = { config = { allowUnfree = true; @@ -25,7 +37,6 @@ enableAllFirmware = true; bluetooth.enable = true; bluetooth.package = pkgs.bluezFull; - brightnessctl.enable = true; opengl.enable = true; pulseaudio = { enable = true; @@ -80,6 +91,18 @@ displayManager.sddm.enable = true; + #session = [ + # { + # manage = "desktop"; + # name = "home-manager"; + # start = '' + # ${pkgs.runtimeShell} $HOME/.hm-xsession & + # waitPID=$! + # ''; + # } + #]; + + windowManager.xmonad.enable = true; desktopManager = { xterm.enable = true; }; @@ -102,8 +125,13 @@ powerManagement.enable = true; nix = { + nixPath = [ + "nixpkgs=${nixpkgs}" + "nixos-config=/etc/nixos/configuration.nix" + "/nix/var/nix/profiles/per-user/root/channels" + ]; gc = { - automatic = true; + automatic = false; dates = "03:15"; }; binaryCaches = [ "https://cache.nixos.org/" ]; -- cgit v1.2.3