summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-22 03:44:33 +0100
committeradikro <adikro@disroot.org>2025-12-22 03:44:33 +0100
commitc2e7208de4e3e7d018560175808f838aa6861b68 (patch)
treebd9cedd1bf524f3e907e6da664e5fe706e7913a1
parentf0a94a72d7f191120682e97130f8277cd56f82d0 (diff)
disko config for desktop host for future reinstalls
-rw-r--r--flake.lock48
-rw-r--r--hosts/desktop/configuration.nix4
-rw-r--r--hosts/desktop/disko.nix76
-rw-r--r--hosts/desktop/hardware-configuration.nix3
-rw-r--r--sys/wm/wm.nix1
5 files changed, 104 insertions, 28 deletions
diff --git a/flake.lock b/flake.lock
index c4d42b3..c0d6341 100644
--- a/flake.lock
+++ b/flake.lock
@@ -277,11 +277,11 @@
]
},
"locked": {
- "lastModified": 1766275489,
- "narHash": "sha256-i56fF7qBYiPEgPOIEsYMu8ZArxAfyynJNt7tSTUAwbY=",
+ "lastModified": 1766361902,
+ "narHash": "sha256-UvMyRzpHluglPn7b4wLBCA8DRSiUwzcS9PKhk0bCcmY=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
- "rev": "6b4fbf28c21874f7cc22ade577f817164bc9f4dc",
+ "rev": "8d66aa1836d522d7cbfdf7a1f40046010f7cf558",
"type": "github"
},
"original": {
@@ -293,11 +293,11 @@
"neovim-src": {
"flake": false,
"locked": {
- "lastModified": 1766273188,
- "narHash": "sha256-WJXoG/O5IHJtK+mBOJ/sUm9L7r/5r0oOfUmYW46PbfY=",
+ "lastModified": 1766349065,
+ "narHash": "sha256-FjrwOMqBASOb0lBItQy3HyGPMcLBokzNQ/0oTiI05YA=",
"owner": "neovim",
"repo": "neovim",
- "rev": "245a4696a250afe9858b50d880ce5ba10fa795bc",
+ "rev": "d1189ea508c888ebf7468be3872c975e4ea264bb",
"type": "github"
},
"original": {
@@ -318,11 +318,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
- "lastModified": 1766234797,
- "narHash": "sha256-yzj51A2eAhYMGo5TLcDqSHZXSUT7kHFRh9o8IE/lNow=",
+ "lastModified": 1766368023,
+ "narHash": "sha256-Qtgo/ptf+oiPVKP+lnXmrEWCddGOsMJMrwyH/GI04vI=",
"owner": "sodiboo",
"repo": "niri-flake",
- "rev": "bf13a0db31466a2e78b31d82de270d833c8fda4c",
+ "rev": "a27b7db4a7e6ea7a613c36ad45f5d9cf201c7603",
"type": "github"
},
"original": {
@@ -396,11 +396,11 @@
]
},
"locked": {
- "lastModified": 1766272488,
- "narHash": "sha256-uT7DDEj81oBxPwB12AMeVNVNHeteTrr194QLKXx8YPs=",
+ "lastModified": 1766332965,
+ "narHash": "sha256-A7hWWIFhMPjcf50nNw7Bid4U5E+YT2OKHIs3lWFArus=",
"owner": "KaylorBen",
"repo": "nixcord",
- "rev": "75063df0c03d6e16244dd04ad6c08a9ad93f4723",
+ "rev": "cc3aa513640220ee0ed624f8dd771a48da6b3d03",
"type": "github"
},
"original": {
@@ -442,11 +442,11 @@
},
"nixpkgs-stable": {
"locked": {
- "lastModified": 1765838191,
- "narHash": "sha256-m5KWt1nOm76ILk/JSCxBM4MfK3rYY7Wq9/TZIIeGnT8=",
+ "lastModified": 1766201043,
+ "narHash": "sha256-eplAP+rorKKd0gNjV3rA6+0WMzb1X1i16F5m5pASnjA=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "c6f52ebd45e5925c188d1a20119978aa4ffd5ef6",
+ "rev": "b3aad468604d3e488d627c0b43984eb60e75e782",
"type": "github"
},
"original": {
@@ -513,11 +513,11 @@
"systems": "systems"
},
"locked": {
- "lastModified": 1766273987,
- "narHash": "sha256-Y8hL2zGyt7xn5J1V806GJ9tMEk6NgVlU7xe4dS4fThE=",
+ "lastModified": 1766359807,
+ "narHash": "sha256-8V3DSc2lz1UqvxOEZLsHyeFYxsM4Z8fnc0PiHS10Zm0=",
"owner": "nix-community",
"repo": "nixvim",
- "rev": "ff00fe1512dfcb31b01d770738de9299b434449b",
+ "rev": "a99d8389c9ec6ca9cf757bd27b6a8c155879696e",
"type": "github"
},
"original": {
@@ -654,11 +654,11 @@
"systems": "systems_2"
},
"locked": {
- "lastModified": 1765687197,
- "narHash": "sha256-5aJgT+lEC7ypuAGE3DQLj3LzYDQ+kRG6MnkVr3ZF9RU=",
+ "lastModified": 1766292025,
+ "narHash": "sha256-dZ9SSqRXfb+WU9MLl5c/ktdRWYZ42uxBPB7rQYuDaJs=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
- "rev": "fa6a5dde9d95bf7b8f075ff5aceeb1d97fa9043a",
+ "rev": "73031a3c9359c6c0ab82098793573d0c0951e372",
"type": "github"
},
"original": {
@@ -753,11 +753,11 @@
"xwayland-satellite-unstable": {
"flake": false,
"locked": {
- "lastModified": 1765935116,
- "narHash": "sha256-lNyckAdrhNKXsi9pNOBYajntNFlWs+BITVoIZuNuwX0=",
+ "lastModified": 1766363450,
+ "narHash": "sha256-buO37E9GTM4Qh1tvBjpSB/JGWN72EYKMUB/Lt8LrW7w=",
"owner": "Supreeeme",
"repo": "xwayland-satellite",
- "rev": "979eab242e60cf481a31d9de508a1bdaf2dcf7d4",
+ "rev": "bf738fffbb26669d0ba9d7a3ecdba3b47afa8a85",
"type": "github"
},
"original": {
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix
index b74efe5..6f9b000 100644
--- a/hosts/desktop/configuration.nix
+++ b/hosts/desktop/configuration.nix
@@ -1,8 +1,10 @@
-{ username, ... }:
+{ inputs, username, ... }:
{
system.stateVersion = "25.05";
imports = [
+ inputs.disko.nixosModules.disko
+
./hardware-configuration.nix
../../sys/default.nix
];
diff --git a/hosts/desktop/disko.nix b/hosts/desktop/disko.nix
new file mode 100644
index 0000000..8e93ef7
--- /dev/null
+++ b/hosts/desktop/disko.nix
@@ -0,0 +1,76 @@
+{
+ disko.devices = {
+ disk = {
+ main = {
+ type = "disk";
+ device = "/dev/nvme0n1";
+ content = {
+ type = "gpt";
+ partitions = {
+ ESP = {
+ size = "2G";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ mountOptions = [ "umask=0077" ];
+ };
+ };
+ root = {
+ size = "100%";
+ content = {
+ type = "btrfs";
+ extraArgs = [ "-f" ];
+ subvolumes = {
+ "root" = {
+ mountpoint = "/";
+ mountOptions = [ "compress=zstd" "noatime" ];
+ };
+ "nix" = {
+ mountpoint = "/nix";
+ mountOptions = [ "compress=zstd" "noatime" ];
+ };
+ "home" = {
+ mountpoint = "/home";
+ mountOptions = [ "compress=zstd" "noatime" "autodefrag" ];
+ };
+ "llms" = {
+ mountpoint = "/llms";
+ mountOptions = [ "compress=zstd" "noatime" "autodefrag"];
+ };
+ "vms" = {
+ mountpoint = "/vms";
+ mountOptions = [ "noatime" "autodefrag" ];
+ };
+ "swap" = {
+ mountpoint = "/.swapvol";
+ swap.swapfile.size = "32G";
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+ media = {
+ type = "disk";
+ device = "/dev/sda";
+ content = {
+ type = "gpt";
+ partitions = {
+ media = {
+ size = "100%";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/media";
+ # extraArgs = [ "-f" ];
+ };
+ };
+ };
+ };
+ };
+ };
+ };
+}
diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix
index cb96715..41eb3a1 100644
--- a/hosts/desktop/hardware-configuration.nix
+++ b/hosts/desktop/hardware-configuration.nix
@@ -30,7 +30,7 @@
};
fileSystems."/media" =
- { device = "/dev/disk/by-uuid/eb13c515-5e4c-4a17-8f2e-1cf5d6e522e4";
+ { device = "/dev/disk/by-uuid/c0dc7c4d-1800-4c84-a04c-5ea7f5e86c4b";
fsType = "ext4";
};
@@ -47,4 +47,3 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
-
diff --git a/sys/wm/wm.nix b/sys/wm/wm.nix
index 10780e0..efe39ab 100644
--- a/sys/wm/wm.nix
+++ b/sys/wm/wm.nix
@@ -14,7 +14,6 @@ in
xdg.portal = {
enable = true;
- wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = [ "gtk" ];