Reset protostar
This commit is contained in:
parent
b453e7faba
commit
1e3a1e0977
5 changed files with 6 additions and 51 deletions
|
|
@ -10,6 +10,5 @@
|
||||||
./network.nix
|
./network.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./zfs.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,56 +15,16 @@
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
zfs = {
|
root = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "zfs";
|
type = "filesystem";
|
||||||
pool = "zroot";
|
format = "ext4";
|
||||||
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Construct the primary zfs pool for this system.
|
|
||||||
zpool.zroot = {
|
|
||||||
type = "zpool";
|
|
||||||
options = {
|
|
||||||
ashift = "12";
|
|
||||||
autotrim = "on";
|
|
||||||
listsnapshots = "on";
|
|
||||||
};
|
|
||||||
rootFsOptions = {
|
|
||||||
acltype = "posix";
|
|
||||||
atime = "off";
|
|
||||||
compression = "zstd";
|
|
||||||
dnodesize = "auto";
|
|
||||||
mountpoint = "none";
|
|
||||||
normalization = "formD";
|
|
||||||
xattr = "sa";
|
|
||||||
};
|
|
||||||
datasets = {
|
|
||||||
# Create dataset for home
|
|
||||||
home = {
|
|
||||||
type = "zfs_fs";
|
|
||||||
mountpoint = "/home";
|
|
||||||
};
|
|
||||||
# Create dataset for nix store
|
|
||||||
nix = {
|
|
||||||
type = "zfs_fs";
|
|
||||||
mountpoint = "/nix";
|
|
||||||
};
|
|
||||||
# Create dataset for root
|
|
||||||
root = {
|
|
||||||
type = "zfs_fs";
|
|
||||||
mountpoint = "/";
|
|
||||||
};
|
|
||||||
# Reserve space for performance
|
|
||||||
reservation = {
|
|
||||||
type = "zfs_fs";
|
|
||||||
options.refreservation = "128G";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,8 @@ in {
|
||||||
home = {
|
home = {
|
||||||
file.".local/share/fonts".source = config.lib.file.mkOutOfStoreSymlink "/run/current-system/sw/share/X11/fonts";
|
file.".local/share/fonts".source = config.lib.file.mkOutOfStoreSymlink "/run/current-system/sw/share/X11/fonts";
|
||||||
packages = with jovianPkgs; [
|
packages = with jovianPkgs; [
|
||||||
feishin
|
|
||||||
lutris
|
lutris
|
||||||
maliit-keyboard
|
|
||||||
retroarchFull
|
retroarchFull
|
||||||
ryujinx
|
|
||||||
winetricks
|
winetricks
|
||||||
wineWowPackages.stagingFull
|
wineWowPackages.stagingFull
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
settings.folders = {
|
settings.folders = {
|
||||||
game-data = {
|
game-data = {
|
||||||
devices = ["quasar"];
|
devices = ["quasar"];
|
||||||
path = "~/Game/data";
|
path = "~/游戏/data";
|
||||||
type = "receiveonly";
|
type = "receiveonly";
|
||||||
};
|
};
|
||||||
game-save = {
|
game-save = {
|
||||||
devices = ["quasar"];
|
devices = ["quasar"];
|
||||||
path = "~/Game/save";
|
path = "~/游戏/save";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ in {
|
||||||
picard
|
picard
|
||||||
qbittorrent
|
qbittorrent
|
||||||
retroarchFull
|
retroarchFull
|
||||||
ryujinx
|
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
thunderbird
|
thunderbird
|
||||||
via
|
via
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue