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