X-Git-Url: https://gitweb.ps.run/flake_thinkpad/blobdiff_plain/7d4be89983f22a94e36bf18bb21453b36aeee3ae..6971b205f6732330b38e2417f529f6344b5e44c3:/configuration.nix?ds=sidebyside diff --git a/configuration.nix b/configuration.nix index cb526d1..73a06b4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -53,6 +53,7 @@ in nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.download-buffer-size = 500000000; + nix.settings.trusted-users = ["root" "ps"]; # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -130,6 +131,9 @@ in displayManager = { defaultSession = "xfce+i3"; }; + desktopManager = { + plasma6.enable = true; + }; xserver = { enable = true; @@ -164,6 +168,7 @@ in }; windowManager.i3.enable = true; windowManager.awesome.enable = true; + windowManager.herbstluftwm.enable = true; xkb = { layout = "de"; @@ -176,6 +181,19 @@ in }; }; + systemd.user.services.plasma-i3wm = { + wantedBy = [ "plasma-workspace-x11.target" ]; + before = [ "plasma-workspace-x11.target" ]; + description = "Launch Plasma with i3"; + environment = lib.mkForce {}; + serviceConfig = { + ExecStart = "${pkgs.i3}/bin/i3"; + Restart = "on-failure"; + }; + }; + # systemd.user.services.plasma-workspace-x11.after = [ "plasma-i3wm.target" ]; + systemd.user.services.plasma-kwin_x11.enable = false; + services.autorandr = { enable = true; matchEdid = true; @@ -193,7 +211,7 @@ in configDir = "/home/ps/.config/syncthing"; }; - services.auto-cpufreq.enable = true; + # services.auto-cpufreq.enable = true; services.auto-cpufreq.settings = { battery = { governor = "powersave"; @@ -278,7 +296,7 @@ in # Enable Bluetooth hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = false; - services.blueman.enable = true; + # services.blueman.enable = true; # Enable sound with pipewire. services.pulseaudio.enable = false; @@ -341,8 +359,12 @@ in inherit wallpaper; }; users = { - "ps" = import ./home.nix; + "ps" = import ./home-ps.nix; + "root" = { home.stateVersion = "24.05"; }; }; + sharedModules = [ + (import ./home-common.nix) + ]; }; # Enable automatic login for the user. @@ -374,6 +396,7 @@ in entr asciinema asciinema-agg shellify + deno scrcpy @@ -389,7 +412,7 @@ in # xfce plugins xfce.xfce4-panel xfce.xfce4-pulseaudio-plugin - # xfce.xfce4-verve-plugin + # xfce.xfce4-verve-plugin xfce.xfce4-notes-plugin # xfce.xfce4-timer-plugin # xfce.xfce4-windowck-plugin