From bf31d06bcff6bba31bde5c8957a056e038eea6e8 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 25 Dec 2024 07:46:21 +0100 Subject: [PATCH 1/7] Attempt to fix the hardcoded device --- config.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.nix b/config.nix index 57df56e..7aa98e8 100644 --- a/config.nix +++ b/config.nix @@ -65,6 +65,7 @@ in git ]; }; +<<<<<<< HEAD wayland.windowManager.sway = { enable = true; @@ -77,6 +78,11 @@ in ''; }; +======= + wayland.windowManager.sway.config.startup = [ + { command = "firefox-esr --kiosk c3nav.de"; always = true; } + ]; +>>>>>>> f295282 (Attempt to fix the hardcoded device) programs = { firefox = { enable = true; From ab37c08deb8d331aab7d7acf2de794c4e7242e4f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 26 Dec 2024 17:11:32 +0100 Subject: [PATCH 2/7] use corerct disk --- config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.nix b/config.nix index 57df56e..bf38a48 100644 --- a/config.nix +++ b/config.nix @@ -170,7 +170,7 @@ in disk = { main = { type = "disk"; - device = "/dev/sda"; + device = "/dev/sdb"; content = { type = "gpt"; partitions = { From 466592e7cbb8559a85e2ddc2e3a5d9d82f1b207d Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 27 Dec 2024 00:33:30 +0100 Subject: [PATCH 3/7] add autostart --- config.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config.nix b/config.nix index bf38a48..850b040 100644 --- a/config.nix +++ b/config.nix @@ -68,6 +68,11 @@ in wayland.windowManager.sway = { enable = true; + config.startup = [ + { + command = "firefox-esr --kiosk c3nav.de"; + } + ]; extraConfig = '' set $ws1 c3nav default_border none @@ -133,6 +138,18 @@ in PasswordAuthentication = false; }; }; + xserver = { + displayManager = { + autoLogin = { + enable = true; + autoLogin.user = "c3terminal"; + }; + lightdm = { + greeter.enable = false; + lightdm.enable = true; + }; + }; + }; }; programs.sway = { From e5478bd328d6b4014ab57b03e39451bce8e64694 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 27 Dec 2024 00:38:32 +0100 Subject: [PATCH 4/7] update config --- config.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/config.nix b/config.nix index 850b040..054e729 100644 --- a/config.nix +++ b/config.nix @@ -68,15 +68,21 @@ in wayland.windowManager.sway = { enable = true; - config.startup = [ - { - command = "firefox-esr --kiosk c3nav.de"; - } - ]; + config = { + startup = [ + { + command = "firefox-esr --kiosk c3nav.de"; + } + ]; + fonts = { + names = [ "Noto Sans" ]; + style = "regular"; + size = 30; + }; + }; extraConfig = '' set $ws1 c3nav default_border none - font pango: "Noto Sans" regular 30 exec swaymsg "workspace $ws1;exec firefox-esr --name=c3nav --no-remote -P "terminal" https://c3nav.de; workspace $ws2; exec firefox-esr --name=fahrplan --no-remote -P "default" https://fahrplan.events.ccc.de/congress/2024/fahrplan/schedule/" include /etc/sway/config.d/* ''; From ad3768889961d82701d98f1cb821ddf17c6e1420 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 27 Dec 2024 00:39:30 +0100 Subject: [PATCH 5/7] fix --- config.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/config.nix b/config.nix index 054e729..e1dbc7b 100644 --- a/config.nix +++ b/config.nix @@ -18,11 +18,6 @@ in programs.vim.enable = true; programs.vim.defaultEditor = true; - services = { - xserver = { - xkb.layout = "de"; - }; - }; console = { enable = true; useXkbConfig = true; @@ -145,14 +140,16 @@ in }; }; xserver = { + xkb.layout = "de"; displayManager = { + defaultSession = "sway"; autoLogin = { enable = true; - autoLogin.user = "c3terminal"; + user = "c3terminal"; }; lightdm = { greeter.enable = false; - lightdm.enable = true; + enable = true; }; }; }; From 351bf8fac13c5580e3e1e3b7a446282e5d0d44bb Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 27 Dec 2024 00:48:16 +0100 Subject: [PATCH 6/7] tes --- config.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.nix b/config.nix index e1dbc7b..2bdd967 100644 --- a/config.nix +++ b/config.nix @@ -140,9 +140,11 @@ in }; }; xserver = { + enable = true; xkb.layout = "de"; displayManager = { defaultSession = "sway"; + sessionData.autologinSession = "sway"; autoLogin = { enable = true; user = "c3terminal"; From e9ba00674acac79828b7ff1ace0788155859cca4 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 27 Dec 2024 00:49:19 +0100 Subject: [PATCH 7/7] font size --- config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.nix b/config.nix index 2bdd967..1d52cbf 100644 --- a/config.nix +++ b/config.nix @@ -72,7 +72,7 @@ in fonts = { names = [ "Noto Sans" ]; style = "regular"; - size = 30; + size = 30.0; }; }; extraConfig = ''