2024-03-16 13:23:59 -04:00
|
|
|
# Lenovo Thinkpad T440p with a Core i5 4210M, 16GB RAM, 512GB SSD.
|
2024-02-29 17:06:55 -05:00
|
|
|
{
|
2024-04-07 22:16:33 -04:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-24 14:06:24 -04:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix # Include the results of the hardware scan.
|
2024-03-28 19:52:15 -04:00
|
|
|
./home.nix
|
2024-04-01 20:29:48 -04:00
|
|
|
./disko.nix
|
2024-03-24 14:06:24 -04:00
|
|
|
];
|
2024-02-29 17:06:55 -05:00
|
|
|
|
2024-04-02 00:28:55 -04:00
|
|
|
boot = {
|
|
|
|
# Bootloader.
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
2024-04-03 15:18:49 -04:00
|
|
|
};
|
|
|
|
# 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
|
2024-04-02 02:08:25 -04:00
|
|
|
|
2024-04-03 15:18:49 -04:00
|
|
|
# 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"
|
|
|
|
# }
|
2024-04-02 10:31:45 -04:00
|
|
|
|
2024-04-03 15:18:49 -04:00
|
|
|
# for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +5); do
|
|
|
|
# delete_subvolume_recursively "$i"
|
|
|
|
# done
|
2024-04-02 10:31:45 -04:00
|
|
|
|
2024-04-03 15:18:49 -04:00
|
|
|
# btrfs subvolume create /btrfs_tmp/rootfs
|
|
|
|
# umount /btrfs_tmp
|
|
|
|
# '';
|
|
|
|
# };
|
2024-02-29 17:06:55 -05:00
|
|
|
|
|
|
|
networking.hostName = "rustboro"; # Define your hostname.
|
|
|
|
|
2024-04-18 14:21:33 -04:00
|
|
|
alyraffauf = {
|
|
|
|
system = {
|
|
|
|
plymouth.enable = true;
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
|
|
|
size = 100;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
user = {
|
2024-04-26 22:55:43 -04:00
|
|
|
aly = {
|
|
|
|
enable = true;
|
|
|
|
password = "$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
|
|
|
};
|
2024-04-23 18:42:31 -04:00
|
|
|
dustin.enable = false;
|
2024-04-18 14:21:33 -04:00
|
|
|
};
|
|
|
|
desktop = {
|
2024-03-30 21:14:13 -04:00
|
|
|
enable = true;
|
2024-04-22 23:14:28 -04:00
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
session = config.programs.sway.package + "/bin/sway";
|
|
|
|
};
|
|
|
|
sway.enable = true;
|
2024-04-18 14:21:33 -04:00
|
|
|
};
|
|
|
|
apps = {
|
|
|
|
steam.enable = true;
|
2024-03-30 21:14:13 -04:00
|
|
|
};
|
2024-04-26 22:38:29 -04:00
|
|
|
services = {
|
|
|
|
syncthing.enable = true;
|
|
|
|
};
|
2024-03-29 21:51:10 -04:00
|
|
|
};
|
|
|
|
|
2024-04-03 15:18:49 -04:00
|
|
|
# environment.persistence."/persist" = {
|
|
|
|
# hideMounts = true;
|
|
|
|
# directories = [
|
|
|
|
# "/etc/NetworkManager/system-connections"
|
|
|
|
# "/etc/ssh"
|
|
|
|
# ];
|
|
|
|
# files = [
|
|
|
|
# "/etc/machine-id"
|
|
|
|
# ];
|
|
|
|
# };
|
2024-04-02 02:08:25 -04:00
|
|
|
|
2024-02-29 17:06:55 -05:00
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
2024-03-24 14:06:24 -04:00
|
|
|
}
|