Migrate gaming to disko+impermanence
This commit is contained in:
parent
1e2da260cb
commit
964a5fd5dc
4 changed files with 31 additions and 28 deletions
|
@ -1,14 +1,10 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
swapDevices = [
|
|
||||||
{
|
|
||||||
device = "/var/lib/swapfile";
|
|
||||||
size = 2 * 1024;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../../shared/base.nix
|
../../shared/base.nix
|
||||||
|
|
||||||
|
../../shared/disko/zfs-impermanence.nix
|
||||||
|
../../shared/hardware/impermanence.nix
|
||||||
../../shared/hardware/nvidia.nix
|
../../shared/hardware/nvidia.nix
|
||||||
../../shared/hardware/vm.nix
|
../../shared/hardware/vm.nix
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,5 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
system.stateVersion = "24.11";
|
networking.hostId = "48434cbd";
|
||||||
|
system.stateVersion = "25.05";
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/22c7a7ae-cedc-43db-b4f1-d591466d8f60";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/1C79-66D7";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [
|
|
||||||
"fmask=0077"
|
|
||||||
"dmask=0077"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/data" = {
|
|
||||||
device = "/dev/disk/by-uuid/dec871b2-5727-486c-978a-8bb2279bd2b8";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,30 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
systemd.tmpfiles.settings."vili-home"."/home/vili".d = {
|
||||||
|
user = "vili";
|
||||||
|
group = "users";
|
||||||
|
mode = "0700";
|
||||||
|
};
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
users.vili = {
|
||||||
|
directories = [
|
||||||
|
{
|
||||||
|
directory = ".parsec";
|
||||||
|
mode = "0755";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
directory = ".parsec-persistent";
|
||||||
|
mode = "0755";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
directory = ".config/sunshine";
|
||||||
|
mode = "0755";
|
||||||
|
}
|
||||||
|
".local/share/Steam"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
parsec-bin
|
parsec-bin
|
||||||
];
|
];
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
fileSystems."/persist".neededForBoot = true;
|
fileSystems."/persist".neededForBoot = true;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
fstrimg.interval = "daily";
|
fstrim.interval = "daily";
|
||||||
zfs = {
|
zfs = {
|
||||||
autoScrub.enable = true;
|
autoScrub.enable = true;
|
||||||
autoSnapshot = {
|
autoSnapshot = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue