updates
This commit is contained in:
parent
0c30b1ed0d
commit
283241b727
5 changed files with 67 additions and 69 deletions
|
|
@ -13,7 +13,7 @@ in {
|
||||||
enable = mkBoolOpt false "Enable Git Integration";
|
enable = mkBoolOpt false "Enable Git Integration";
|
||||||
|
|
||||||
signByDefault = mkBoolOpt true "Sign by default";
|
signByDefault = mkBoolOpt true "Sign by default";
|
||||||
signingKey = mkStringOpt "EE8A2B709E2401D1" "The KeyID of your GPG signingKey";
|
signingKey = mkStringOpt "81FB9FECDD6A33E2" "The KeyID of your GPG signingKey";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
generateCompletions = true;
|
generateCompletions = false;
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set -gx LC_ALL en_US.UTF-8
|
set -gx LC_ALL en_US.UTF-8
|
||||||
set -gx SSH_AUTH_SOCK /run/user/1000/keyring/ssh
|
set -gx SSH_AUTH_SOCK /run/user/1000/keyring/ssh
|
||||||
|
|
|
||||||
|
|
@ -142,8 +142,7 @@
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "earth"; # Define your hostname.
|
networking.hostName = "earth"; # Define your hostname.
|
||||||
|
networking.hostId = "a2a8bfcc";
|
||||||
networking.extraHosts = "127.0.0.1 local-cald.io";
|
|
||||||
|
|
||||||
networking.networkmanager = {
|
networking.networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -183,16 +182,26 @@
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
services.wg.enable = true;
|
services.wg.enable = false;
|
||||||
|
|
||||||
# home-manager.useGlobalPkgs = false;
|
# home-manager.useGlobalPkgs = false;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.sbctl
|
pkgs.sbctl
|
||||||
|
pkgs.kdiskmark
|
||||||
pkgs.mangohud
|
pkgs.mangohud
|
||||||
|
(pkgs.shadps4.overrideAttrs {
|
||||||
|
version = "0.9.0";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "AzaharPlus";
|
||||||
|
repo = "shadPS4Plus";
|
||||||
|
tag = "SHADPS4PLUS_0_9_0_A";
|
||||||
|
hash = "sha256-ZwP+bOE4roWt51Ii53blDZzdq/SxK4Q69I4rLCNARLA=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
(pkgs.lutris.override {
|
(pkgs.lutris.override {
|
||||||
extraPkgs = pkgs: [
|
extraPkgs = pkgs: [
|
||||||
inputs.nix-gaming.packages.${pkgs.system}.wine-tkg-zoey
|
|
||||||
pkgs.winetricks
|
pkgs.winetricks
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
@ -256,7 +265,7 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
"SteamLibrary" = {
|
"SteamLibrary" = {
|
||||||
path = "/mnt/bk"; # Update this path to your drive's mount point
|
path = "/mnt/zbk"; # Update this path to your drive's mount point
|
||||||
browseable = true;
|
browseable = true;
|
||||||
writable = true;
|
writable = true;
|
||||||
guestOk = true; # Allow access without authentication
|
guestOk = true; # Allow access without authentication
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
root = {
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/nvme0n1";
|
device = "/dev/nvme0n1";
|
||||||
content = {
|
content = {
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
mountOptions = ["nofail"];
|
mountOptions = ["umask=0077" "nofail"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
zfs = {
|
zfs = {
|
||||||
|
|
@ -33,11 +33,11 @@
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
zfs = {
|
zbk = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "zfs";
|
type = "zfs";
|
||||||
pool = "zbackup";
|
pool = "zbk";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -45,59 +45,71 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
zpool = {
|
zpool = {
|
||||||
|
zbk = {
|
||||||
|
type = "zpool";
|
||||||
|
rootFsOptions = {
|
||||||
|
acltype = "posixacl";
|
||||||
|
atime = "off";
|
||||||
|
compression = "zstd";
|
||||||
|
mountpoint = "none";
|
||||||
|
xattr = "sa";
|
||||||
|
autotrim = "on";
|
||||||
|
};
|
||||||
|
options.ashift = "12";
|
||||||
|
|
||||||
|
datasets = {
|
||||||
|
"zbk" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options.mountpoint = "none";
|
||||||
|
};
|
||||||
|
"zbk/zbk" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/mnt/zbk";
|
||||||
|
options."sharesmb" = "on";
|
||||||
|
# Used by services.zfs.autoSnapshot options.
|
||||||
|
options."com.sun:auto-snapshot" = "true";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
zroot = {
|
zroot = {
|
||||||
type = "zpool";
|
type = "zpool";
|
||||||
rootFsOptions = {
|
rootFsOptions = {
|
||||||
mountpoint = "none";
|
# https://wiki.archlinux.org/title/Install_Arch_Linux_on_ZFS
|
||||||
compression = "zstd";
|
|
||||||
acltype = "posixacl";
|
acltype = "posixacl";
|
||||||
|
atime = "off";
|
||||||
|
compression = "zstd";
|
||||||
|
mountpoint = "none";
|
||||||
xattr = "sa";
|
xattr = "sa";
|
||||||
"com.sun:auto-snapshot" = "true";
|
autotrim = "on";
|
||||||
};
|
};
|
||||||
options.ashift = "12";
|
options.ashift = "12";
|
||||||
|
|
||||||
datasets = {
|
datasets = {
|
||||||
"root" = {
|
"local" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
options.mountpoint = "none";
|
||||||
|
};
|
||||||
|
"local/home" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/home";
|
||||||
|
# Used by services.zfs.autoSnapshot options.
|
||||||
|
options."com.sun:auto-snapshot" = "true";
|
||||||
|
};
|
||||||
|
"local/nix" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/nix";
|
||||||
|
options."com.sun:auto-snapshot" = "false";
|
||||||
|
};
|
||||||
|
"local/persist" = {
|
||||||
|
type = "zfs_fs";
|
||||||
|
mountpoint = "/persist";
|
||||||
|
options."com.sun:auto-snapshot" = "false";
|
||||||
|
};
|
||||||
|
"local/root" = {
|
||||||
type = "zfs_fs";
|
type = "zfs_fs";
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
options."com.sun:auto-snapshot" = "false";
|
||||||
"root/nix" = {
|
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot/local/root@blank$' || zfs snapshot zroot/local/root@blank";
|
||||||
type = "zfs_fs";
|
|
||||||
options.mountpoint = "/nix";
|
|
||||||
mountpoint = "/nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
# README MORE: https://wiki.archlinux.org/title/ZFS#Swap_volume
|
|
||||||
"root/swap" = {
|
|
||||||
type = "zfs_volume";
|
|
||||||
size = "32G";
|
|
||||||
content = {
|
|
||||||
type = "swap";
|
|
||||||
};
|
|
||||||
options = {
|
|
||||||
volblocksize = "4096";
|
|
||||||
compression = "zle";
|
|
||||||
logbias = "throughput";
|
|
||||||
sync = "always";
|
|
||||||
primarycache = "metadata";
|
|
||||||
secondarycache = "none";
|
|
||||||
"com.sun:auto-snapshot" = "false";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
zbackup = {
|
|
||||||
type = "zpool";
|
|
||||||
rootFsOptions = {
|
|
||||||
mountpoint = "none";
|
|
||||||
compression = "zstd";
|
|
||||||
acltype = "posixacl";
|
|
||||||
xattr = "sa";
|
|
||||||
};
|
|
||||||
options.ashift = "12";
|
|
||||||
datasets = {
|
|
||||||
"root" = {
|
|
||||||
type = "zfs_fs";
|
|
||||||
mountpoint = "/mnt/zbk";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,29 +17,6 @@
|
||||||
boot.kernelModules = ["kvm-amd" "ntsync"];
|
boot.kernelModules = ["kvm-amd" "ntsync"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
fileSystems."/" = {
|
|
||||||
device = "/dev/disk/by-uuid/ad6fa764-31b2-4dfd-9fc7-f2638c2e2e5e";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
|
||||||
device = "/dev/disk/by-uuid/AACF-2693";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = ["fmask=0077" "dmask=0077"];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/bk" = {
|
|
||||||
device = "/dev/disk/by-partuuid/f352c9b5-2207-4313-bcb4-ba0491de72fe";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [
|
|
||||||
"auto" # Mount at boot
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [
|
|
||||||
{device = "/dev/disk/by-uuid/5c74e955-26c7-4f71-9b48-975a89b1d5ec";}
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue