mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
99 lines
3.5 KiB
Scheme
99 lines
3.5 KiB
Scheme
;; [[file:../../../Guix.org::*azure][azure:1]]
|
|
(use-modules (gnu))
|
|
(use-modules (gnu system nss))
|
|
(use-modules (gnu packages certs))
|
|
(use-modules (gnu packages version-control))
|
|
(use-modules (gnu packages vim))
|
|
(use-modules (gnu packages gnome))
|
|
(use-modules (gnu packages xorg))
|
|
(use-modules (gnu packages wm))
|
|
(use-modules (gnu packages openbox))
|
|
(use-modules (nongnu packages linux))
|
|
(use-modules (nongnu system linux-initrd))
|
|
|
|
(use-service-modules desktop networking ssh xorg)
|
|
(use-package-modules ssh)
|
|
(define %my-desktop-services
|
|
(modify-services %desktop-services
|
|
(network-manager-service-type config =>
|
|
(network-manager-configuration (inherit config)
|
|
(vpn-plugins (list network-manager-openvpn))))))
|
|
|
|
|
|
(define %backlight-udev-rule
|
|
(udev-rule
|
|
"90-backlight.rules"
|
|
(string-append "ACTION==\"add\", SUBSYSTEM==\"backlight\", "
|
|
"RUN+=\"/run/current-system/profile/bin/chgrp video /sys/class/backlight/%k/brightness\""
|
|
"\n"
|
|
"ACTION==\"add\", SUBSYSTEM==\"backlight\", "
|
|
"RUN+=\"/run/current-system/profile/bin/chmod g+w /sys/class/backlight/%k/brightness\"")))
|
|
|
|
(operating-system
|
|
(kernel linux)
|
|
(initrd microcode-initrd)
|
|
(firmware (list linux-firmware))
|
|
(locale "en_US.utf8")
|
|
(timezone "Europe/Moscow")
|
|
(keyboard-layout (keyboard-layout "us,ru" #:options '("grp:alt_shift_toggle")))
|
|
(users (cons* (user-account
|
|
(name "pavel")
|
|
(comment "Pavel")
|
|
(group "users")
|
|
(home-directory "/home/pavel")
|
|
(supplementary-groups
|
|
'("wheel" ;; sudo
|
|
"netdev" ;; network devices
|
|
"audio"
|
|
"video"
|
|
"input"
|
|
"tty"
|
|
;; "docker"
|
|
"lp")))
|
|
%base-user-accounts))
|
|
|
|
(packages
|
|
(append
|
|
(list nss-certs
|
|
git
|
|
i3-gaps
|
|
openbox
|
|
xterm
|
|
vim)
|
|
%base-packages))
|
|
|
|
(host-name "azure")
|
|
(services (append
|
|
(list (service openssh-service-type)
|
|
(set-xorg-configuration
|
|
(xorg-configuration
|
|
(keyboard-layout keyboard-layout))))
|
|
(modify-services %my-desktop-services
|
|
(elogind-service-type config =>
|
|
(elogind-configuration (inherit config)
|
|
(handle-lid-switch-external-power 'suspend)))
|
|
(udev-service-type config =>
|
|
(udev-configuration (inherit config)
|
|
(rules (cons %backlight-udev-rule
|
|
(udev-configuration-rules config))))))))
|
|
|
|
(bootloader
|
|
(bootloader-configuration
|
|
(bootloader grub-efi-bootloader)
|
|
(target "/boot/efi")
|
|
(keyboard-layout keyboard-layout)))
|
|
|
|
(swap-devices
|
|
(list (uuid "4b2dedb3-b111-4e69-8c05-6daa2b072c76")))
|
|
|
|
(file-systems
|
|
(cons* (file-system
|
|
(mount-point "/")
|
|
(device (file-system-label "my-root"))
|
|
(type "ext4"))
|
|
(file-system
|
|
(mount-point "/boot/efi")
|
|
(device "/dev/sda1")
|
|
(type "vfat"))
|
|
%base-file-systems)))
|
|
;; azure:1 ends here
|