mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 00:41:53 -05:00
migrate dustin from petalburg to rustboro
This commit is contained in:
parent
98ea87a8b6
commit
e65f0e95bb
|
@ -77,8 +77,7 @@ in {
|
||||||
|
|
||||||
desktopConfig = {
|
desktopConfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManagers.hyprland.enable = false;
|
windowManagers.hyprland.enable = true;
|
||||||
desktopEnvironments.gnome.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
systemConfig = {
|
systemConfig = {
|
||||||
|
|
|
@ -12,16 +12,13 @@
|
||||||
desktopEnv.hyprland.enable = true;
|
desktopEnv.hyprland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
userConfig.dustin.enable = true;
|
# userConfig.dustin.enable = true;
|
||||||
home-manager.users.dustin = {
|
# home-manager.users.dustin = {
|
||||||
imports = [ ../../homeManagerModules ];
|
# imports = [ ../../homeManagerModules ];
|
||||||
home.username = "dustin";
|
# home.username = "dustin";
|
||||||
home.homeDirectory = "/home/dustin";
|
# home.homeDirectory = "/home/dustin";
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
# home.stateVersion = "23.11";
|
||||||
programs.home-manager.enable = true;
|
# programs.home-manager.enable = true;
|
||||||
|
# };
|
||||||
desktopEnv.hyprland.enable = false;
|
|
||||||
desktopEnv.gnome.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,32 +13,32 @@
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
initrd.postDeviceCommands = lib.mkAfter ''
|
|
||||||
mkdir /btrfs_tmp
|
|
||||||
mount /dev/sda2 /btrfs_tmp
|
|
||||||
if [[ -e /btrfs_tmp/rootfs ]]; then
|
|
||||||
mkdir -p /btrfs_tmp/old_roots
|
|
||||||
timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/rootfs)" "+%Y-%m-%-d_%H:%M:%S")
|
|
||||||
mv /btrfs_tmp/rootfs "/btrfs_tmp/old_roots/$timestamp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
delete_subvolume_recursively() {
|
|
||||||
IFS=$'\n'
|
|
||||||
for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do
|
|
||||||
delete_subvolume_recursively "/btrfs_tmp/$i"
|
|
||||||
done
|
|
||||||
btrfs subvolume delete "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +5); do
|
|
||||||
delete_subvolume_recursively "$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
btrfs subvolume create /btrfs_tmp/rootfs
|
|
||||||
umount /btrfs_tmp
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
# initrd.postDeviceCommands = lib.mkAfter ''
|
||||||
|
# mkdir /btrfs_tmp
|
||||||
|
# mount /dev/sda2 /btrfs_tmp
|
||||||
|
# if [[ -e /btrfs_tmp/rootfs ]]; then
|
||||||
|
# mkdir -p /btrfs_tmp/old_roots
|
||||||
|
# timestamp=$(date --date="@$(stat -c %Y /btrfs_tmp/rootfs)" "+%Y-%m-%-d_%H:%M:%S")
|
||||||
|
# mv /btrfs_tmp/rootfs "/btrfs_tmp/old_roots/$timestamp"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# delete_subvolume_recursively() {
|
||||||
|
# IFS=$'\n'
|
||||||
|
# for i in $(btrfs subvolume list -o "$1" | cut -f 9- -d ' '); do
|
||||||
|
# delete_subvolume_recursively "/btrfs_tmp/$i"
|
||||||
|
# done
|
||||||
|
# btrfs subvolume delete "$1"
|
||||||
|
# }
|
||||||
|
|
||||||
|
# for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +5); do
|
||||||
|
# delete_subvolume_recursively "$i"
|
||||||
|
# done
|
||||||
|
|
||||||
|
# btrfs subvolume create /btrfs_tmp/rootfs
|
||||||
|
# umount /btrfs_tmp
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
|
|
||||||
networking.hostName = "rustboro"; # Define your hostname.
|
networking.hostName = "rustboro"; # Define your hostname.
|
||||||
|
|
||||||
|
@ -62,19 +62,16 @@
|
||||||
steam.enable = false;
|
steam.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.aly.hashedPassword =
|
# environment.persistence."/persist" = {
|
||||||
"$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
# hideMounts = true;
|
||||||
|
# directories = [
|
||||||
environment.persistence."/persist" = {
|
# "/etc/NetworkManager/system-connections"
|
||||||
hideMounts = true;
|
# "/etc/ssh"
|
||||||
directories = [
|
# ];
|
||||||
"/etc/NetworkManager/system-connections"
|
# files = [
|
||||||
"/etc/ssh"
|
# "/etc/machine-id"
|
||||||
];
|
# ];
|
||||||
files = [
|
# };
|
||||||
"/etc/machine-id"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,23 @@
|
||||||
{ inputs, config, pkgs, lib, ... }:
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
userConfig.dustin.enable = true;
|
||||||
|
|
||||||
|
users.users.dustin.hashedPassword =
|
||||||
|
"$y$j9T$OXQYhj4IWjRJWWYsSwcqf.$lCcdq9S7m0EAdej9KMHWj9flH8K2pUb2gitNhLTlLG/";
|
||||||
|
|
||||||
|
home-manager.users.dustin = {
|
||||||
|
imports = [ ../../homeManagerModules ];
|
||||||
|
home.username = "dustin";
|
||||||
|
home.homeDirectory = "/home/dustin";
|
||||||
|
|
||||||
|
home.stateVersion = "23.11";
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.aly.hashedPassword =
|
||||||
|
"$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
||||||
|
|
||||||
home-manager.users.aly = {
|
home-manager.users.aly = {
|
||||||
imports = [ ../../homeManagerModules ];
|
imports = [ ../../homeManagerModules ];
|
||||||
home.username = "aly";
|
home.username = "aly";
|
||||||
|
|
Loading…
Reference in a new issue