summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 11:17:07 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-01-14 11:17:07 +0100
commita6172d9aa23465b13e3c09a9cc9dbfa76a707c61 (patch)
treeaff3ff0fc4c939bce3baa2f97567b87f7a76367a
Repo Init
-rw-r--r--.bash_profile2
-rw-r--r--.bashrc31
-rw-r--r--channels.scm7
-rw-r--r--home-configuration.scm40
-rw-r--r--nvm_init2
-rw-r--r--system-configuration.scm67
6 files changed, 149 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
new file mode 100644
index 0000000..37ea25c
--- /dev/null
+++ b/.bash_profile
@@ -0,0 +1,2 @@
+# Honor per-interactive-shell startup file
+if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..10589f4
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,31 @@
+# Bash initialization for interactive non-login shells and
+# for remote shells (info "(bash) Bash Startup Files").
+
+# Export 'SHELL' to child processes. Programs such as 'screen'
+# honor it and otherwise use /bin/sh.
+export SHELL
+
+if [[ $- != *i* ]]
+then
+ # We are being invoked from a non-interactive shell. If this
+ # is an SSH session (as in "ssh host command"), source
+ # /etc/profile so we get PATH and other essential variables.
+ [[ -n "$SSH_CLIENT" ]] && source /etc/profile
+
+ # Don't do anything else.
+ return
+fi
+
+# Source the system-wide file.
+source /etc/bashrc
+
+# Adjust the prompt depending on whether we're in 'guix environment'.
+if [ -n "$GUIX_ENVIRONMENT" ]
+then
+ PS1='\u@\h \w [env]\$ '
+else
+ PS1='\u@\h \w\$ '
+fi
+alias ls='ls -p --color=auto'
+alias ll='ls -l'
+alias grep='grep --color=auto'
diff --git a/channels.scm b/channels.scm
new file mode 100644
index 0000000..9f30b45
--- /dev/null
+++ b/channels.scm
@@ -0,0 +1,7 @@
+%default-channels
+
+;(list
+; (channel
+; (branch "trezor-fix")
+; (name 'guix)
+; (url "file:///home/marek/src/guix")))
diff --git a/home-configuration.scm b/home-configuration.scm
new file mode 100644
index 0000000..4605e52
--- /dev/null
+++ b/home-configuration.scm
@@ -0,0 +1,40 @@
+;; This "home-environment" file can be passed to 'guix home reconfigure'
+;; to reproduce the content of your profile. This is "symbolic": it only
+;; specifies package names. To reproduce the exact same profile, you also
+;; need to capture the channels being used, as returned by "guix describe".
+;; See the "Replicating Guix" section in the manual.
+
+(use-modules
+ (gnu home)
+ (gnu home services shells)
+ (gnu packages)
+ (gnu services)
+ (guix gexp))
+
+(home-environment
+ (packages
+ (map
+ (compose list specification->package+output)
+ (list "dconf-editor" "evolution" "font-google-noto" "git" "git-lfs" "gnome-shell-extensions" "gnome-tweaks" "pwgen" "seahorse" "trezor-agent")))
+
+ (services
+ (list
+ (service home-bash-service-type
+ (home-bash-configuration
+ (environment-variables
+ '(("NVM_DIR" . "$HOME/src/nvm")
+ ( "GUILE_AUTO_COMPILE" . "0")))
+
+ (aliases
+ '(("grep" . "grep --color=auto")
+ ("ll" . "ls -l")
+ ("ls" . "ls -p --color=auto")))
+
+ (bash-profile
+ (list
+ (local-file "/home/marek/src/guix-config/.bash_profile" "bash_profile")))
+
+ (bashrc
+ (list
+ (local-file "/home/marek/src/guix-config/.bashrc" "bashrc")
+ (local-file "/home/marek/src/guix-config/nvm_init" "nvm_init"))))))))
diff --git a/nvm_init b/nvm_init
new file mode 100644
index 0000000..61a8f6d
--- /dev/null
+++ b/nvm_init
@@ -0,0 +1,2 @@
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
diff --git a/system-configuration.scm b/system-configuration.scm
new file mode 100644
index 0000000..59a7b48
--- /dev/null
+++ b/system-configuration.scm
@@ -0,0 +1,67 @@
+;; This is an operating system configuration generated
+;; by the graphical installer.
+
+(use-modules
+ (gnu))
+
+(use-service-modules cups desktop networking ssh xorg)
+
+(operating-system
+ (kernel
+ (specification->package "linux-libre@5.10"))
+ (locale "pl_PL.utf8")
+ (timezone "Europe/Warsaw")
+ (keyboard-layout (keyboard-layout "pl"))
+ (host-name "aisaka")
+ (users (cons* (user-account
+ (name "marek")
+ (comment "Marek Paśnikowski")
+ (group "users")
+ (home-directory "/home/marek")
+ (supplementary-groups
+ '("wheel" "netdev" "audio" "video")))
+ %base-user-accounts))
+ (packages
+ (append
+ (map
+ (compose list specification->package+output)
+ (list "nss-certs" "trezord" "trezord-udev-rules"))
+ %base-packages))
+ (services
+ (append
+ (list (service gnome-desktop-service-type)
+ (service openssh-service-type)
+ (service tor-service-type)
+ (service cups-service-type)
+ (set-xorg-configuration
+ (xorg-configuration
+ (keyboard-layout keyboard-layout))))
+ %desktop-services))
+ (bootloader
+ (bootloader-configuration
+ (bootloader grub-bootloader)
+ (targets (list "/dev/sda"))
+ (keyboard-layout keyboard-layout)))
+ (swap-devices
+ (list (swap-space
+ (target
+ (uuid "73bed3f9-be07-40ad-a228-577cd24f2e1d")))))
+ (mapped-devices
+ (list (mapped-device
+ (source
+ (uuid "887ac37f-2919-41a0-a62a-e1ff5ea2d6cc"))
+ (target "aisaka-root")
+ (type luks-device-mapping))))
+ (file-systems
+ (cons* (file-system
+ (mount-point "/")
+ (device "/dev/mapper/aisaka-root")
+ (type "btrfs")
+ (dependencies mapped-devices))
+ (file-system
+ (mount-point "/boot")
+ (device
+ (uuid "4f77b5fc-56ad-43ae-b6ec-e5adc8c48587"
+ 'ext4))
+ (type "ext4"))
+ %base-file-systems)))