From 14342901583b8b65a539957d8f8a8583c1d3cec0 Mon Sep 17 00:00:00 2001 From: Leo Alho Date: Sun, 26 Jul 2026 00:07:34 +0300 Subject: [PATCH] Remove current, add it to gitignore. Add system config --- .gitignore | 1 + config.scm | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ current | 1 - 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 config.scm delete mode 120000 current diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b9023a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +current diff --git a/config.scm b/config.scm new file mode 100644 index 0000000..e357a0b --- /dev/null +++ b/config.scm @@ -0,0 +1,69 @@ +;; This is an operating system configuration generated +;; by the graphical installer. +;; +;; Once installation is complete, you can learn and modify +;; this file to tweak the system configuration, and pass it +;; to the 'guix system reconfigure' command to effect your +;; changes. + + +;; Indicate which modules to import to access the variables +;; used in this configuration. +(use-modules (gnu)) +(use-service-modules cups desktop networking ssh xorg) + +(operating-system + (locale "en_GB.utf8") + (timezone "Europe/Helsinki") + (keyboard-layout (keyboard-layout "fi")) + (host-name "leo") + + ;; The list of user accounts ('root' is implicit). + (users (cons* (user-account + (name "leo") + (comment "Leo Alho") + (group "users") + (home-directory "/home/leo") + (supplementary-groups '("wheel" "netdev" "audio" "video"))) + %base-user-accounts)) + + ;; Below is the list of system services. To search for available + ;; services, run 'guix system search KEYWORD' in a terminal. + (services + (append (list (service gnome-desktop-service-type) + + ;; To configure OpenSSH, pass an 'openssh-configuration' + ;; record as a second argument to 'service' below. + (service openssh-service-type) + (service cups-service-type) + (set-xorg-configuration + (xorg-configuration (keyboard-layout keyboard-layout)))) + + ;; This is the default list of services we + ;; are appending to. + (modify-services %desktop-services + (guix-service-type config => (guix-configuration + (inherit config) + (substitute-urls + (append (list "https://substitutes.nonguix.org") + %default-substitute-urls)) + (authorized-keys + (append (list (local-file "./signing-key.pub")) + %default-authorized-guix-keys))))))) + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (targets (list "/dev/vda")) + (keyboard-layout keyboard-layout))) + (swap-devices (list (swap-space + (target (uuid + "8726bddb-acc6-4b59-bd43-7d7ab025ffe8"))))) + + ;; The list of file systems that get "mounted". The unique + ;; file system identifiers there ("UUIDs") can be obtained + ;; by running 'blkid' in a terminal. + (file-systems (cons* (file-system + (mount-point "/") + (device (uuid + "b5a3ebf6-28b1-4e19-a1d4-f7e4b145b4ce" + 'ext4)) + (type "ext4")) %base-file-systems))) diff --git a/current b/current deleted file mode 120000 index 4f1f147..0000000 --- a/current +++ /dev/null @@ -1 +0,0 @@ -/var/guix/profiles/per-user/leo/current-guix \ No newline at end of file