summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/gui/base.nix22
-rw-r--r--makefu/2configs/gui/gnome.nix22
-rw-r--r--makefu/2configs/gui/snake-kiosk.nix44
3 files changed, 76 insertions, 12 deletions
diff --git a/makefu/2configs/gui/base.nix b/makefu/2configs/gui/base.nix
index b2192c7f9..b1b7c9913 100644
--- a/makefu/2configs/gui/base.nix
+++ b/makefu/2configs/gui/base.nix
@@ -18,30 +18,28 @@ in
imports = [
./urxvtd.nix
./pipewire.nix
+ ./gnome.nix
];
+ # services.redshift.enable = true;
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "altgr-intl";
xkbOptions = "ctrl:nocaps, eurosign:e";
- windowManager = {
- awesome.enable = true;
- awesome.noArgb = true;
- awesome.luaModules = [ pkgs.luaPackages.vicious ];
- };
- displayManager.defaultSession = lib.mkDefault "none+awesome";
- displayManager.autoLogin = {
- enable = true;
- user = mainUser;
- };
+# windowManager = {
+# awesome.enable = true;
+# awesome.noArgb = true;
+# awesome.luaModules = [ pkgs.luaPackages.vicious ];
+# };
+# displayManager.defaultSession = lib.mkDefault "none+awesome";
};
environment.systemPackages = [ pkgs.gnome.adwaita-icon-theme ];
# lid switch is handled via button presses
- services.logind.lidSwitch = lib.mkDefault "ignore";
- makefu.awesome.enable = true;
+ # services.logind.lidSwitch = lib.mkDefault "ignore";
+ #makefu.awesome.enable = true;
console.font = "Lat2-Terminus16";
fonts = {
diff --git a/makefu/2configs/gui/gnome.nix b/makefu/2configs/gui/gnome.nix
new file mode 100644
index 000000000..e6eff29f4
--- /dev/null
+++ b/makefu/2configs/gui/gnome.nix
@@ -0,0 +1,22 @@
+{ config, lib, pkgs, ... }:
+
+let
+ mainUser = config.krebs.build.user.name;
+in
+{
+ programs.gnome-terminal.enable = true;
+ services.xserver = {
+ desktopManager.gnome.enable = true;
+ displayManager.gdm.enable = true;
+ #displayManager.autoLogin = {
+ # enable = true;
+ # user = mainUser;
+ #};
+ };
+ home-manager.users.${mainUser}.services.gammastep = {
+ enable = true;
+ provider = "manual";
+ latitude = config.location.latitude;
+ longitude = config.location.longitude;
+ };
+}
diff --git a/makefu/2configs/gui/snake-kiosk.nix b/makefu/2configs/gui/snake-kiosk.nix
new file mode 100644
index 000000000..838ac3a5c
--- /dev/null
+++ b/makefu/2configs/gui/snake-kiosk.nix
@@ -0,0 +1,44 @@
+{ pkgs, lib, ... }:
+{
+
+ imports = [
+ ./base.nix
+ ];
+ users.users.kiosk = {
+ # packages = [ pkgs.chromium pkgs.vscode ];
+ group = "kiosk";
+ isNormalUser = true;
+ uid = 1003;
+ extraGroups = [ "wheel" "audio" "pulse" "pipewire" ];
+ };
+ users.groups.kiosk.gid = 989 ;
+ services.xserver = {
+ enable = true;
+
+ windowManager = lib.mkForce { awesome.enable = false; };
+ displayManager.gdm.enable = true;
+ displayManager.gdm.autoSuspend = false;
+ displayManager.autoLogin = {
+ enable = true;
+ user = lib.mkForce "kiosk";
+ };
+ displayManager.defaultSession = "gnome";
+ desktopManager.gnome.enable = true;
+ };
+
+ systemd.targets.sleep.enable = false;
+ systemd.targets.suspend.enable = false;
+ systemd.targets.hibernate.enable = false;
+ systemd.targets.hybrid-sleep.enable = false;
+
+
+
+ environment.systemPackages = [ pkgs.gnomeExtensions.appindicator ];
+ services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.gnome-settings-daemon ];
+
+ services.pipewire.systemWide = lib.mkForce false;
+ services.pipewire.config.pipewire-pulse = {
+ "pulse.properties"."server.address" = [ "unix:native" "tcp:4713" ];
+ };
+
+}