Small changes in setup.
This commit is contained in:
1 parent
5e7911e35d
commit
70fb1822a1
4 files changed
+12
-28
No files matched your search
@@ -22,4 +22,9 @@
|
||||
|
||||
# Set sops-age key file path
|
||||
sops.age.keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Remote Desktop
|
||||
remmina
|
||||
];
|
||||
}
|
||||
@@ -19,25 +19,19 @@
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
cp-dotfiles () {
|
||||
mount-device () {
|
||||
case "$1" in
|
||||
usb)
|
||||
sudo rsync -av --prune-empty-dirs --no-owner --no-group \
|
||||
--exclude='hardware-configuration.nix' \
|
||||
${config.home.homeDirectory}/.dotfiles/* "/mnt/usb/os/linux/nixos/dotfiles/"
|
||||
sudo mount -m /dev/sda1 /mnt/usb
|
||||
;;
|
||||
microsd)
|
||||
sudo rsync -av --prune-empty-dirs --no-owner --no-group \
|
||||
--exclude='hardware-configuration.nix' \
|
||||
${config.home.homeDirectory}/.dotfiles/* "/mnt/microsd/os/linux/nixos/dotfiles/"
|
||||
sudo mount -m /dev/mmcblk0p1 /mnt/microsd
|
||||
;;
|
||||
nvme)
|
||||
sudo rsync -av --prune-empty-dirs --no-owner --no-group \
|
||||
--exclude='hardware-configuration.nix' \
|
||||
${config.home.homeDirectory}/.dotfiles/* "/mnt/nvme/home/metallaxis/Desktop/microsd backup/os/linux/nixos/dotfiles/"
|
||||
sudo mount -m /dev/sda2 /mnt/nvme
|
||||
;;
|
||||
*)
|
||||
echo "Usage: cp-dotfiles [usb|microsd|nvme]"
|
||||
echo "Usage: mount-device [usb|microsd|nvme]"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
age sops btop fastfetch acpi gparted efibootmgr dunst
|
||||
libnotify wlogout bzip2 gzip zip unzip gnugrep jq yq-go
|
||||
cacert brightnessctl lsd p7zip asciinema asciinema-agg
|
||||
|
||||
# Sandboxing
|
||||
bubblewrap
|
||||
|
||||
# Desktop/Hyprland
|
||||
|
||||
@@ -11,23 +11,6 @@
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
mount-device () {
|
||||
case "$1" in
|
||||
usb)
|
||||
sudo mount -m /dev/sda1 /mnt/usb
|
||||
;;
|
||||
microsd)
|
||||
sudo mount -m /dev/mmcblk0p1 /mnt/microsd
|
||||
;;
|
||||
nvme)
|
||||
sudo mount -m /dev/sda2 /mnt/nvme
|
||||
;;
|
||||
*)
|
||||
echo "Usage: mount-device [usb|microsd|nvme]"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
git_full_status() {
|
||||
local branch ahead behind dirty
|
||||
branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
||||
|
||||
Reference in new issue
Block a user