Compare commits
No commits in common. "main" and "refactor" have entirely different histories.
@ -13,7 +13,7 @@
|
|||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "vfat";
|
format = "vfat";
|
||||||
extraArgs = [ "-n" "NIXBOOT" ];
|
extraArgs = [ "-n NIXBOOT" ];
|
||||||
mountpoint = "/boot";
|
mountpoint = "/boot";
|
||||||
mountOptions = [
|
mountOptions = [
|
||||||
"defaults"
|
"defaults"
|
||||||
@ -24,7 +24,7 @@
|
|||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = [ "-f" "-L" "NIXROOT" ];
|
extraArgs = [ "-f -L NIXROOT" ];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"@" = {
|
"@" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
|
@ -47,10 +47,6 @@
|
|||||||
mountpoint = "/nix";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "ssd" "discard=async" ];
|
mountOptions = [ "compress=zstd" "noatime" "ssd" "discard=async" ];
|
||||||
};
|
};
|
||||||
"@opt" = {
|
|
||||||
mountpoint = "/opt";
|
|
||||||
mountOptions = [ "compress=zstd" "noatime" "ssd" "discard=async" ];
|
|
||||||
};
|
|
||||||
"@snapshots" = {
|
"@snapshots" = {
|
||||||
mountpoint = "/mnt";
|
mountpoint = "/mnt";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "ssd" "discard=async" ];
|
mountOptions = [ "compress=zstd" "noatime" "ssd" "discard=async" ];
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
disk="/dev/vda"
|
|
||||||
mountpoint="/mnt"
|
|
||||||
|
|
||||||
mount $disk $mountpoint -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@
|
|
||||||
mount $disk $mountpoint/home -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@home
|
|
||||||
mount $disk $mountpoint/var -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@var
|
|
||||||
mount $disk $mountpoint/srv -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@srv
|
|
||||||
mount $disk $mountpoint/nix -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@nix
|
|
||||||
mount $disk $mountpoint/swap -o compress=zstd,noatime,ssd,space_cache=v2,subvol=@swap
|
|
447
flake.lock
generated
447
flake.lock
generated
@ -10,11 +10,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736955230,
|
"lastModified": 1715290355,
|
||||||
"narHash": "sha256-uenf8fv2eG5bKM8C/UvFaiJMZ4IpUFaQxk9OH5t/1gA=",
|
"narHash": "sha256-2T7CHTqBXJJ3ZC6R/4TXTcKoXWHcvubKNj9SfomURnw=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
"rev": "e600439ec4c273cf11e06fe4d9d906fb98fa097c",
|
"rev": "8d37c5bdeade12b6479c85acd133063ab53187a0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -24,12 +24,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"crane": {
|
"crane": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"lanzaboote",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741148495,
|
"lastModified": 1711299236,
|
||||||
"narHash": "sha256-EV8KUaIZ2/CdBXlutXrHoZYbWPeB65p5kKZk71gvDRI=",
|
"narHash": "sha256-6/JsyozOMKN8LUGqWMopKTSiK8N79T8Q+hcxu2KkTXg=",
|
||||||
"owner": "ipetkov",
|
"owner": "ipetkov",
|
||||||
"repo": "crane",
|
"repo": "crane",
|
||||||
"rev": "75390a36cd0c2cdd5f1aafd8a9f827d7107f2e53",
|
"rev": "880573f80d09e18a11713f402b9e6172a085449f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -60,14 +66,66 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"devshell": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_3",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713532798,
|
||||||
|
"narHash": "sha256-wtBhsdMJA3Wa32Wtm1eeo84GejtI43pMrFrmwLXrsEc=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"rev": "12e914740a25ea1891ec619bb53cf5e6ca922e40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "devshell",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733328505,
|
"lastModified": 1696426674,
|
||||||
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
"owner": "edolstra",
|
"owner": "edolstra",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"revCount": 57,
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_3": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -84,11 +142,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740872218,
|
"lastModified": 1709336216,
|
||||||
"narHash": "sha256-ZaMw0pdoUKigLpv9HiNDH2Pjnosg7NBYMJlHTIsHEUo=",
|
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "3876f6b87db82f33775b1ef5ea343986105db764",
|
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -97,16 +155,88 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715865404,
|
||||||
|
"narHash": "sha256-/GJvTdTpuDjNn84j82cU6bXztE0MSkdnTWClUCRub78=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "8dc45382d5206bd292f9c2768b8058a8fd8311d9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-root": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713493429,
|
||||||
|
"narHash": "sha256-ztz8JQkI08tjKnsTpfLqzWoKFQF4JGu2LRz8bkdnYUk=",
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "flake-root",
|
||||||
|
"rev": "bc748b93b86ee76e2032eecda33440ceb2532fcd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "flake-root",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705309234,
|
||||||
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_3": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_4"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1701680307,
|
||||||
|
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -137,6 +267,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"gitignore_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"pre-commit-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -165,11 +317,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744833442,
|
"lastModified": 1715930644,
|
||||||
"narHash": "sha256-BBMWW2m64Grcc5FlXz74+vdkUyCJOfUGnl+VcS/4x44=",
|
"narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c6b75d69b6994ba68ec281bd36faebcc56097800",
|
"rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -185,27 +337,48 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744743431,
|
"lastModified": 1715381426,
|
||||||
"narHash": "sha256-iyn/WBYDc7OtjSawbegINDe/gIkok888kQxk3aVnkgg=",
|
"narHash": "sha256-wPuqrAQGdv3ISs74nJfGb+Yprm23U/rFpcHFFNWgM94=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c61bfe3ae692f42ce688b5865fac9e0de58e1387",
|
"rev": "ab5542e9dbd13d0100f8baae2bc2d68af901f4b4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-23.11",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager_3": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715930644,
|
||||||
|
"narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.11",
|
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanence": {
|
"impermanence": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737831083,
|
"lastModified": 1708968331,
|
||||||
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
|
"narHash": "sha256-VUXLaPusCBvwM3zhGbRIJVeYluh2uWuqtj4WirQ1L9Y=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "impermanence",
|
"repo": "impermanence",
|
||||||
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
|
"rev": "a33ef102a02ce77d3e39c25197664b7a636f9c30",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -222,11 +395,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744866383,
|
"lastModified": 1716107076,
|
||||||
"narHash": "sha256-SOBI89WTS8qqrjysrE0+VsePe5JoOxtbnmFroJbHiAo=",
|
"narHash": "sha256-aB15oIMUv6N/UFsLHzgcGRUvU4YfOjE3gEirIP/k82s=",
|
||||||
"owner": "Jovian-Experiments",
|
"owner": "Jovian-Experiments",
|
||||||
"repo": "Jovian-NixOS",
|
"repo": "Jovian-NixOS",
|
||||||
"rev": "36186806e1dc4c0e370d0080f9b838ff8b1d20a2",
|
"rev": "e8de93b7b4c384650977a20c1f192e23c6e7a12f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -240,6 +413,7 @@
|
|||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
@ -247,11 +421,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741442524,
|
"lastModified": 1713369831,
|
||||||
"narHash": "sha256-tVcxLDLLho8dWcO81Xj/3/ANLdVs0bGyCPyKjp70JWk=",
|
"narHash": "sha256-G4OGxvlIIjphpkxcRAkf1QInYsAeqbfNh6Yl1JLy2uM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lanzaboote",
|
"repo": "lanzaboote",
|
||||||
"rev": "d8099586d9a84308ffedac07880e7f07a0180ff4",
|
"rev": "850f27322239f8cfa56b122cc9a278ab99a49015",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -263,18 +437,18 @@
|
|||||||
},
|
},
|
||||||
"microvm": {
|
"microvm": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"spectrum": "spectrum"
|
"spectrum": "spectrum"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743083165,
|
"lastModified": 1715787097,
|
||||||
"narHash": "sha256-Fz7AiCJWtoWZ2guJwO3B1h3RuJxYWaCzFIqY0Kmkyrs=",
|
"narHash": "sha256-TPp2j0ttvBvkk4oXidvo8Y071zEab0BtcNsC3ZEkluI=",
|
||||||
"owner": "astro",
|
"owner": "astro",
|
||||||
"repo": "microvm.nix",
|
"repo": "microvm.nix",
|
||||||
"rev": "773d5a04e2e10ca7b412270dea11276a496e1b61",
|
"rev": "fa673bf8656fe6f28253b83971a36999bc9995d2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -283,6 +457,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-darwin": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715901937,
|
||||||
|
"narHash": "sha256-eMyvWP56ZOdraC2IOvZo0/RTDcrrsqJ0oJWDC76JTak=",
|
||||||
|
"owner": "lnl7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"rev": "ffc01182f90118119930bdfc528c1ee9a39ecef8",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lnl7",
|
||||||
|
"repo": "nix-darwin",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-github-actions": {
|
"nix-github-actions": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@ -291,11 +486,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729697500,
|
"lastModified": 1690328911,
|
||||||
"narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=",
|
"narHash": "sha256-fxtExYk+aGf2YbjeWQ8JY9/n9dwuEt+ma1eUFzF8Jeo=",
|
||||||
"owner": "zhaofengli",
|
"owner": "zhaofengli",
|
||||||
"repo": "nix-github-actions",
|
"repo": "nix-github-actions",
|
||||||
"rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf",
|
"rev": "96df4a39c52f53cb7098b923224d8ce941b64747",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -307,11 +502,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744633460,
|
"lastModified": 1716034089,
|
||||||
"narHash": "sha256-fbWE4Xpw6eH0Q6in+ymNuDwTkqmFmtxcQEmtRuKDTTk=",
|
"narHash": "sha256-QBfab6V4TeQ6Y4NiXVrEATdQuhCNFNaXt/L1K/Zw+zc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "9a049b4a421076d27fee3eec664a18b2066824cb",
|
"rev": "b55712de78725c8fcde422ee0a0fe682046e73c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -323,27 +518,43 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744440957,
|
"lastModified": 1716061101,
|
||||||
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
|
"narHash": "sha256-H0eCta7ahEgloGIwE/ihkyGstOGu+kQwAiHvwVoXaA0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
|
"rev": "e7cc61784ddf51c81487637b3031a6dd2d6673a2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-23.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710695816,
|
||||||
|
"narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "614b4613980a522ba49f0d194531beddbb7220d3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-23.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744463964,
|
"lastModified": 1715961556,
|
||||||
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=",
|
"narHash": "sha256-+NpbZRCRisUHKQJZF3CT+xn14ZZQO+KjxIIanH3Pvn4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650",
|
"rev": "4a6b83b05df1a8bd7d99095ec4b4d271f2956b64",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -353,24 +564,84 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixvim": {
|
||||||
|
"inputs": {
|
||||||
|
"devshell": "devshell",
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
|
"flake-root": "flake-root",
|
||||||
|
"home-manager": "home-manager_3",
|
||||||
|
"nix-darwin": "nix-darwin",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
],
|
||||||
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1716125991,
|
||||||
|
"narHash": "sha256-PmB9vmp383foiVi64RawbnkC+6SiYiWUjdzw2xgl3eM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixvim",
|
||||||
|
"rev": "88ade1dfaa017499326103a078c66dd5d4d0606e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixvim",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pre-commit-hooks": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_3",
|
||||||
|
"gitignore": "gitignore_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715870890,
|
||||||
|
"narHash": "sha256-nacSOeXtUEM77Gn0G4bTdEOeFIrkCBXiyyFZtdGwuH0=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "pre-commit-hooks.nix",
|
||||||
|
"rev": "fa606cccd7b0ccebe2880051208e4a0f61bfc8c1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "pre-commit-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pre-commit-hooks-nix": {
|
"pre-commit-hooks-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [
|
"flake-compat": [
|
||||||
"lanzaboote",
|
"lanzaboote",
|
||||||
"flake-compat"
|
"flake-compat"
|
||||||
],
|
],
|
||||||
|
"flake-utils": [
|
||||||
|
"lanzaboote",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
"gitignore": "gitignore",
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"lanzaboote",
|
"lanzaboote",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740915799,
|
"lastModified": 1710923068,
|
||||||
"narHash": "sha256-JvQvtaphZNmeeV+IpHgNdiNePsIpHD5U/7QN5AeY44A=",
|
"narHash": "sha256-6hOpUiuxuwpXXc/xfJsBUJeqqgGI+JMJuLo45aG3cKc=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "42b1ba089d2034d910566bf6b40830af6b8ec732",
|
"rev": "e611897ddfdde3ed3eaac4758635d7177ff78673",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -390,22 +661,27 @@
|
|||||||
"microvm": "microvm",
|
"microvm": "microvm",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable"
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"nixvim": "nixvim"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-utils": [
|
||||||
|
"lanzaboote",
|
||||||
|
"flake-utils"
|
||||||
|
],
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"lanzaboote",
|
"lanzaboote",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741228283,
|
"lastModified": 1711246447,
|
||||||
"narHash": "sha256-VzqI+k/eoijLQ5am6rDFDAtFAbw8nltXfLBC6SIEJAE=",
|
"narHash": "sha256-g9TOluObcOEKewFo2fR4cn51Y/jSKhRRo4QZckHLop0=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "38e9826bc4296c9daf18bc1e6aa299f3e932a403",
|
"rev": "dcc802a6ec4e9cc6a1c8c393327f0c42666f22e4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -417,11 +693,11 @@
|
|||||||
"spectrum": {
|
"spectrum": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733308308,
|
"lastModified": 1708358594,
|
||||||
"narHash": "sha256-+RcbMAjSxV1wW5UpS9abIG1lFZC8bITPiFIKNnE7RLs=",
|
"narHash": "sha256-e71YOotu2FYA67HoC/voJDTFsiPpZNRwmiQb4f94OxQ=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "80c9e9830d460c944c8f730065f18bb733bc7ee2",
|
"rev": "6d0e73864d28794cdbd26ab7b37259ab0e1e044c",
|
||||||
"revCount": 792,
|
"revCount": 614,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://spectrum-os.org/git/spectrum"
|
"url": "https://spectrum-os.org/git/spectrum"
|
||||||
},
|
},
|
||||||
@ -459,6 +735,57 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715940852,
|
||||||
|
"narHash": "sha256-wJqHMg/K6X3JGAE9YLM0LsuKrKb4XiBeVaoeMNlReZg=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "2fba33a182602b9d49f0b2440513e5ee091d838b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
54
flake.nix
54
flake.nix
@ -12,7 +12,7 @@
|
|||||||
inputs = # All flake references used to build my NixOS setup. These are dependencies.
|
inputs = # All flake references used to build my NixOS setup. These are dependencies.
|
||||||
{
|
{
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix Packages
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; # Nix Packages
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
||||||
microvm = {
|
microvm = {
|
||||||
@ -23,7 +23,7 @@
|
|||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
home-manager = { # User Package Management
|
home-manager = { # User Package Management
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-23.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -38,37 +38,37 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
jovian-nixos = {
|
jovian-nixos = {
|
||||||
url = "github:Jovian-Experiments/Jovian-NixOS";
|
url = "github:Jovian-Experiments/Jovian-NixOS";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
lanzaboote = {
|
lanzaboote = {
|
||||||
url = "github:nix-community/lanzaboote/master";
|
url = "github:nix-community/lanzaboote/master";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixvim = {
|
||||||
|
url = "github:nix-community/nixvim";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, ... }: # Function that tells my flake which to use and what do what to do with the dependencies.
|
outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, nixvim, ... }: # Function that tells my flake which to use and what do what to do with the dependencies.
|
||||||
rec {
|
let # Variables that can be used in the config files
|
||||||
nixosConfigurations = ( # NixOS configurations
|
user = "kabbone";
|
||||||
import ./hosts { # Imports ./hosts/default.nix
|
userdmz = "diablo";
|
||||||
inherit (nixpkgs) lib;
|
userserver = "mephisto";
|
||||||
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable agenix jovian-nixos microvm impermanence lanzaboote; # Also inherit home-manager so it does not need to be defined here.
|
location = "$HOME/.setup";
|
||||||
nix.allowedUsers = [ "@wheel" ];
|
in # Use above variables in ...
|
||||||
security.sudo.execWheelOnly = true;
|
{
|
||||||
}
|
nixosConfigurations = ( # NixOS configurations
|
||||||
);
|
import ./hosts { # Imports ./hosts/default.nix
|
||||||
hydraJobs = {
|
inherit (nixpkgs) lib;
|
||||||
"steamdeck" = nixosConfigurations.steamdeck.config.system.build.toplevel;
|
inherit inputs nixpkgs nixpkgs-unstable nixos-hardware home-manager home-manager-unstable user userdmz userserver location agenix jovian-nixos microvm impermanence lanzaboote nixvim; # Also inherit home-manager so it does not need to be defined here.
|
||||||
"hades" = nixosConfigurations.hades.config.system.build.toplevel;
|
nix.allowedUsers = [ "@wheel" ];
|
||||||
"nasbak" = nixosConfigurations.nasbak.config.system.build.toplevel;
|
security.sudo.execWheelOnly = true;
|
||||||
"jupiter" = nixosConfigurations.jupiter.config.system.build.toplevel;
|
}
|
||||||
"lifebook" = nixosConfigurations.lifebook.config.system.build.toplevel;
|
);
|
||||||
"kabtop" = nixosConfigurations.kabtop.config.system.build.toplevel;
|
|
||||||
"dmz" = nixosConfigurations.dmz.config.system.build.toplevel;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# └─ default.nix
|
# └─ default.nix
|
||||||
#
|
#
|
||||||
|
|
||||||
{ config, lib, pkgs, pkgs-stable, inputs, user, location, agenix, ... }:
|
{ config, lib, pkgs, inputs, user, location, agenix, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = # Import window or display manager.
|
imports = # Import window or display manager.
|
||||||
@ -58,12 +58,12 @@
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
#sound = { # ALSA sound enable
|
sound = { # ALSA sound enable
|
||||||
## #enable = true;
|
#enable = true;
|
||||||
# mediaKeys = { # Keyboard Media Keys (for minimal desktop) enable = true;
|
mediaKeys = { # Keyboard Media Keys (for minimal desktop) enable = true;
|
||||||
# enable = true;
|
enable = true;
|
||||||
# };
|
};
|
||||||
#};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ # Fonts
|
fonts.packages = with pkgs; [ # Fonts
|
||||||
carlito # NixOS
|
carlito # NixOS
|
||||||
@ -74,6 +74,11 @@
|
|||||||
corefonts # MS
|
corefonts # MS
|
||||||
intel-one-mono
|
intel-one-mono
|
||||||
cascadia-code
|
cascadia-code
|
||||||
|
(nerdfonts.override { # Nerdfont Icons override
|
||||||
|
fonts = [
|
||||||
|
"FiraCode"
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
@ -83,14 +88,13 @@
|
|||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
BROWSER = "firefox";
|
BROWSER = "firefox";
|
||||||
};
|
};
|
||||||
systemPackages = (with pkgs; [ # Default packages install system-wide
|
systemPackages = with pkgs; [ # Default packages install system-wide
|
||||||
vim
|
vim
|
||||||
git
|
git
|
||||||
killall
|
killall
|
||||||
pciutils
|
pciutils
|
||||||
usbutils
|
usbutils
|
||||||
wget
|
wget
|
||||||
file
|
|
||||||
powertop
|
powertop
|
||||||
cpufrequtils
|
cpufrequtils
|
||||||
lm_sensors
|
lm_sensors
|
||||||
@ -104,24 +108,15 @@
|
|||||||
age-plugin-yubikey
|
age-plugin-yubikey
|
||||||
pwgen
|
pwgen
|
||||||
cryptsetup
|
cryptsetup
|
||||||
python311Packages.powerline
|
powerline
|
||||||
powerline-fonts
|
powerline-fonts
|
||||||
powerline-symbols
|
powerline-symbols
|
||||||
tree
|
tree
|
||||||
direnv
|
direnv
|
||||||
linuxPackages_latest.cpupower
|
linuxPackages_latest.cpupower
|
||||||
linuxPackages_latest.turbostat
|
|
||||||
btop
|
btop
|
||||||
sbctl
|
sbctl
|
||||||
ausweisapp
|
];
|
||||||
e2fsprogs
|
|
||||||
]);
|
|
||||||
|
|
||||||
##++
|
|
||||||
|
|
||||||
#(with pkgs-stable; [
|
|
||||||
# orca-slicer
|
|
||||||
#]);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@ -136,18 +131,28 @@
|
|||||||
};
|
};
|
||||||
openssh = { # SSH: secure shell (remote connection to shell of server)
|
openssh = { # SSH: secure shell (remote connection to shell of server)
|
||||||
enable = true; # local: $ ssh <user>@<ip>
|
enable = true; # local: $ ssh <user>@<ip>
|
||||||
settings = {
|
# public:
|
||||||
PasswordAuthentication = false;
|
# - port forward 22 TCP to server
|
||||||
PermitRootLogin = "no";
|
# - in case you want to use the domain name insted of the ip:
|
||||||
};
|
# - for me, via cloudflare, create an A record with name "ssh" to the correct ip without proxy
|
||||||
|
# - connect via ssh <user>@<ip or ssh.domain>
|
||||||
|
# generating a key:
|
||||||
|
# - $ ssh-keygen | ssh-copy-id <ip/domain> | ssh-add
|
||||||
|
# - if ssh-add does not work: $ eval `ssh-agent -s`
|
||||||
|
# allowSFTP = true; # SFTP: secure file transfer protocol (send file to server)
|
||||||
|
# connect: $ sftp <user>@<ip/domain>
|
||||||
|
# commands:
|
||||||
|
# - lpwd & pwd = print (local) parent working directory
|
||||||
|
# - put/get <filename> = send or receive file
|
||||||
# extraConfig = ''
|
# extraConfig = ''
|
||||||
# HostKeyAlgorithms +ssh-rsa
|
# HostKeyAlgorithms +ssh-rsa
|
||||||
# ''; # Temporary extra config so ssh will work in guacamole
|
# ''; # Temporary extra config so ssh will work in guacamole
|
||||||
|
settings.PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
pcscd.enable = true;
|
pcscd.enable = true;
|
||||||
yubikey-agent.enable = true;
|
yubikey-agent.enable = true;
|
||||||
udev.packages = [ pkgs.yubikey-personalization pkgs.nitrokey-udev-rules ];
|
udev.packages = [ pkgs.yubikey-personalization pkgs.nitrokey-udev-rules ];
|
||||||
flatpak.enable = true; # download flatpak file from website - sudo flatpak install <path> - reboot if not showing up
|
#flatpak.enable = true; # download flatpak file from website - sudo flatpak install <path> - reboot if not showing up
|
||||||
# sudo flatpak uninstall --delete-data <app-id> (> flatpak list --app) - flatpak uninstall --unused
|
# sudo flatpak uninstall --delete-data <app-id> (> flatpak list --app) - flatpak uninstall --unused
|
||||||
# List:
|
# List:
|
||||||
# com.obsproject.Studio
|
# com.obsproject.Studio
|
||||||
@ -157,16 +162,6 @@
|
|||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
|
||||||
zsh.enable = true;
|
|
||||||
dconf.enable = true;
|
|
||||||
ssh = {
|
|
||||||
startAgent = true;
|
|
||||||
agentTimeout = "1h";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#xdg.portal = { # Required for flatpak
|
#xdg.portal = { # Required for flatpak
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
# extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
@ -190,7 +185,7 @@
|
|||||||
|
|
||||||
system = { # NixOS settings
|
system = { # NixOS settings
|
||||||
autoUpgrade = { # Allow auto update
|
autoUpgrade = { # Allow auto update
|
||||||
enable = false;
|
enable = true;
|
||||||
flake = "git+https://git.kabtop.de/Kabbone/nixos-config";
|
flake = "git+https://git.kabtop.de/Kabbone/nixos-config";
|
||||||
randomizedDelaySec = "5m";
|
randomizedDelaySec = "5m";
|
||||||
allowReboot = true;
|
allowReboot = true;
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
{ config, lib, pkgs, inputs, user, location, agenix, ... }:
|
{ config, lib, pkgs, inputs, user, location, agenix, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
imports = # Import window or display manager.
|
imports = # Import window or display manager.
|
||||||
[
|
[
|
||||||
#../modules/editors/nvim # ! Comment this out on first install !
|
#../modules/editors/nvim # ! Comment this out on first install !
|
||||||
@ -47,22 +49,24 @@
|
|||||||
keyMap = "us"; # or us/azerty/etc
|
keyMap = "us"; # or us/azerty/etc
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security.rtkit.enable = true;
|
||||||
rtkit.enable = true;
|
security.pki.certificateFiles = [
|
||||||
pki.certificateFiles = [
|
|
||||||
./rootCA.pem
|
./rootCA.pem
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ # Fonts
|
fonts.packages = with pkgs; [ # Fonts
|
||||||
carlito # NixOS
|
carlito # NixOS
|
||||||
vegur # NixOS
|
vegur # NixOS
|
||||||
source-code-pro
|
source-code-pro
|
||||||
|
cascadia-code
|
||||||
font-awesome # Icons
|
font-awesome # Icons
|
||||||
hack-font
|
hack-font
|
||||||
corefonts # MS
|
corefonts # MS
|
||||||
intel-one-mono
|
(nerdfonts.override { # Nerdfont Icons override
|
||||||
cascadia-code
|
fonts = [
|
||||||
|
"FiraCode"
|
||||||
|
];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
@ -70,7 +74,6 @@
|
|||||||
TERMINAL = "alacritty";
|
TERMINAL = "alacritty";
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
VISUAL = "nvim";
|
VISUAL = "nvim";
|
||||||
BROWSER = "firefox";
|
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [ # Default packages install system-wide
|
systemPackages = with pkgs; [ # Default packages install system-wide
|
||||||
vim
|
vim
|
||||||
@ -87,15 +90,13 @@
|
|||||||
agenix.packages.x86_64-linux.default
|
agenix.packages.x86_64-linux.default
|
||||||
ffmpeg
|
ffmpeg
|
||||||
smartmontools
|
smartmontools
|
||||||
cryptsetup
|
powerline
|
||||||
python311Packages.powerline
|
|
||||||
powerline-fonts
|
powerline-fonts
|
||||||
powerline-symbols
|
powerline-symbols
|
||||||
tree
|
tree
|
||||||
direnv
|
|
||||||
linuxPackages_latest.cpupower
|
|
||||||
btop
|
btop
|
||||||
htop
|
htop
|
||||||
|
direnv
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -114,10 +115,6 @@
|
|||||||
# sudo flatpak uninstall --delete-data <app-id> (> flatpak list --app) - flatpak uninstall --unused
|
# sudo flatpak uninstall --delete-data <app-id> (> flatpak list --app) - flatpak uninstall --unused
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
|
||||||
zsh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = { # Nix Package Manager settings
|
nix = { # Nix Package Manager settings
|
||||||
settings ={
|
settings ={
|
||||||
auto-optimise-store = true; # Optimise syslinks
|
auto-optimise-store = true; # Optimise syslinks
|
||||||
@ -135,9 +132,6 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
nixpkgs.config.allowUnfree = true; # Allow proprietary software.
|
nixpkgs.config.allowUnfree = true; # Allow proprietary software.
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"olm-3.2.16"
|
|
||||||
];
|
|
||||||
|
|
||||||
system = { # NixOS settings
|
system = { # NixOS settings
|
||||||
autoUpgrade = { # Allow auto update
|
autoUpgrade = { # Allow auto update
|
||||||
|
@ -11,14 +11,9 @@
|
|||||||
# └─ ./home.nix
|
# └─ ./home.nix
|
||||||
#
|
#
|
||||||
|
|
||||||
{ lib, inputs, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, agenix, jovian-nixos, microvm, impermanence, lanzaboote, ... }:
|
{ lib, inputs, nixpkgs, nixpkgs-unstable, nixos-hardware, home-manager, home-manager-unstable, user, userdmz, userserver, location, agenix, jovian-nixos, microvm, impermanence, lanzaboote, nixvim, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
user = "kabbone";
|
|
||||||
userdmz = "diablo";
|
|
||||||
userserver = "mephisto";
|
|
||||||
location = "$HOME/.setup";
|
|
||||||
|
|
||||||
system = "x86_64-linux"; # System architecture
|
system = "x86_64-linux"; # System architecture
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
@ -26,31 +21,21 @@ let
|
|||||||
config.allowUnfree = true; # Allow proprietary software
|
config.allowUnfree = true; # Allow proprietary software
|
||||||
};
|
};
|
||||||
|
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true; # Allow proprietary software
|
|
||||||
};
|
|
||||||
|
|
||||||
pkgs-stable = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
config.allowUnfree = true; # Allow proprietary software
|
|
||||||
};
|
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
users.defaultShell = "pkgs.zsh";
|
users.defaultShell = "pkgs.zsh";
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
hades = lib.nixosSystem { # Desktop profile
|
desktop = lib.nixosSystem { # Desktop profile
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs pkgs-stable user location nixos-hardware agenix microvm nixpkgs lanzaboote; };
|
specialArgs = { inherit inputs user location nixos-hardware agenix microvm nixpkgs lanzaboote nixvim; };
|
||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
microvm.nixosModules.host
|
microvm.nixosModules.host
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
#nixvim.nixosModules.nixvim
|
||||||
./desktop
|
./desktop
|
||||||
./configuration_desktop.nix
|
./configuration_desktop.nix
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
../modules/hardware/remoteBuilder.nix
|
../modules/hardware/remoteBuilder.nix
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
nixos-hardware.nixosModules.common-gpu-amd
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
@ -68,16 +53,16 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
lifebook = lib.nixosSystem { # Laptop profile
|
laptop = lib.nixosSystem { # Laptop profile
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs pkgs-stable user location nixos-hardware agenix lanzaboote; };
|
specialArgs = { inherit inputs user location nixos-hardware agenix; };
|
||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
lanzaboote.nixosModules.lanzaboote
|
./laptop
|
||||||
./lifebook
|
|
||||||
./configuration_desktop.nix
|
./configuration_desktop.nix
|
||||||
../modules/hardware/hydraCache.nix
|
../modules/hardware/remoteClient.nix
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
nixos-hardware.nixosModules.common-cpu-intel
|
||||||
|
nixos-hardware.nixosModules.common-gpu-intel
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
@ -85,29 +70,7 @@ in
|
|||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
home-manager.extraSpecialArgs = { inherit user; };
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
imports = [(import ./home.nix)] ++ [(import ./lifebook/home.nix)];
|
imports = [(import ./home.nix)] ++ [(import ./laptop/home.nix)];
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
nbf5 = lib.nixosSystem { # Laptop profile
|
|
||||||
inherit system;
|
|
||||||
specialArgs = { inherit inputs pkgs-stable user location nixos-hardware agenix; };
|
|
||||||
modules = [
|
|
||||||
agenix.nixosModules.default
|
|
||||||
./nbf5
|
|
||||||
./configuration_server.nix
|
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
|
||||||
home-manager.users.${user} = {
|
|
||||||
imports = [(import ./home_server.nix)] ++ [(import ./nbf5/home.nix)];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -115,14 +78,17 @@ in
|
|||||||
|
|
||||||
steamdeck = nixpkgs-unstable.lib.nixosSystem { # steamdeck profile
|
steamdeck = nixpkgs-unstable.lib.nixosSystem { # steamdeck profile
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs pkgs-stable user location nixos-hardware agenix jovian-nixos lanzaboote; };
|
specialArgs = { inherit inputs user location nixos-hardware agenix jovian-nixos lanzaboote; };
|
||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
jovian-nixos.nixosModules.default
|
jovian-nixos.nixosModules.default
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
./steamdeck
|
./steamdeck
|
||||||
./configuration_desktop.nix
|
./configuration_desktop.nix
|
||||||
../modules/hardware/hydraCache.nix
|
../modules/hardware/remoteClient.nix
|
||||||
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
home-manager-unstable.nixosModules.home-manager {
|
home-manager-unstable.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@ -143,7 +109,6 @@ in
|
|||||||
microvm.nixosModules.host
|
microvm.nixosModules.host
|
||||||
./server
|
./server
|
||||||
./configuration_server.nix
|
./configuration_server.nix
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
@ -166,7 +131,6 @@ in
|
|||||||
microvm.nixosModules.host
|
microvm.nixosModules.host
|
||||||
./kabtop
|
./kabtop
|
||||||
./configuration_server.nix
|
./configuration_server.nix
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-amd
|
nixos-hardware.nixosModules.common-cpu-amd
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
@ -187,8 +151,8 @@ in
|
|||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
./nasbackup
|
./nasbackup
|
||||||
./configuration_server.nix
|
./configuration_desktop.nix
|
||||||
../modules/hardware/hydraCache.nix
|
../modules/hardware/remoteClient.nix
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
nixos-hardware.nixosModules.common-cpu-intel
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
@ -209,8 +173,8 @@ in
|
|||||||
modules = [
|
modules = [
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
./jupiter
|
./jupiter
|
||||||
./configuration_server.nix
|
./configuration_desktop.nix
|
||||||
../modules/hardware/hydraCache.nix
|
../modules/hardware/remoteClient.nix
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
nixos-hardware.nixosModules.common-cpu-intel
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
@ -225,51 +189,6 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
kabtopci = lib.nixosSystem { # Desktop profile
|
|
||||||
inherit system;
|
|
||||||
specialArgs = { inherit inputs user location nixos-hardware agenix nixpkgs impermanence; };
|
|
||||||
modules = [
|
|
||||||
agenix.nixosModules.default
|
|
||||||
microvm.nixosModules.host
|
|
||||||
./kabtopci
|
|
||||||
./configuration_server.nix
|
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
|
||||||
home-manager.users.${user} = {
|
|
||||||
imports = [(import ./home_server.nix)] ++ [(import ./kabtopci/home.nix)];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
kubemaster-1 = lib.nixosSystem { # Desktop profile
|
|
||||||
inherit system;
|
|
||||||
specialArgs = { inherit inputs user location nixos-hardware agenix nixpkgs impermanence; };
|
|
||||||
modules = [
|
|
||||||
agenix.nixosModules.default
|
|
||||||
microvm.nixosModules.host
|
|
||||||
./kubemaster-1
|
|
||||||
./configuration_server.nix
|
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-cpu-intel
|
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
|
||||||
home-manager.useGlobalPkgs = true;
|
|
||||||
home-manager.useUserPackages = true;
|
|
||||||
home-manager.extraSpecialArgs = { inherit user; };
|
|
||||||
home-manager.users.${user} = {
|
|
||||||
imports = [(import ./home_server.nix)] ++ [(import ./kubemaster-1/home.nix)];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
dmz = lib.nixosSystem { # Desktop profile
|
dmz = lib.nixosSystem { # Desktop profile
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs user location nixos-hardware agenix nixpkgs impermanence; };
|
specialArgs = { inherit inputs user location nixos-hardware agenix nixpkgs impermanence; };
|
||||||
@ -278,7 +197,6 @@ in
|
|||||||
microvm.nixosModules.host
|
microvm.nixosModules.host
|
||||||
./dmz
|
./dmz
|
||||||
./configuration_server.nix
|
./configuration_server.nix
|
||||||
../modules/hardware/hydraCache.nix
|
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
# └─ default.nix
|
# └─ default.nix
|
||||||
#
|
#
|
||||||
|
|
||||||
{ config, nixpkgs, pkgs, user, lib, ... }:
|
{ config, nixpkgs, pkgs, user, lib, nixvim, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = # For now, if applying to other system, swap files
|
imports = # For now, if applying to other system, swap files
|
||||||
@ -53,24 +53,41 @@
|
|||||||
# nitrokey.enable = true;
|
# nitrokey.enable = true;
|
||||||
# };
|
# };
|
||||||
|
|
||||||
environment = {
|
# environment = {
|
||||||
systemPackages = with pkgs; [
|
# systemPackages = with pkgs; [
|
||||||
linux-firmware
|
## simple-scan
|
||||||
];
|
## intel-media-driver
|
||||||
|
## alacritty
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
programs = { # No xbacklight, this is the alterantive
|
||||||
|
zsh.enable = true;
|
||||||
|
dconf.enable = true;
|
||||||
|
ssh.startAgent = false;
|
||||||
|
gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
pinentryFlavor = "curses";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
#auto-cpufreq.enable = true;
|
#auto-cpufreq.enable = true;
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
avahi = { # Needed to find wireless printer
|
printing = { # Printing and drivers for TS5300
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
drivers = [ pkgs.gutenprint ];
|
||||||
publish = { # Needed for detecting the scanner
|
|
||||||
enable = true;
|
|
||||||
addresses = true;
|
|
||||||
userServices = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
#avahi = { # Needed to find wireless printer
|
||||||
|
# enable = true;
|
||||||
|
# nssmdns = true;
|
||||||
|
# publish = { # Needed for detecting the scanner
|
||||||
|
# enable = true;
|
||||||
|
# addresses = true;
|
||||||
|
# userServices = true;
|
||||||
|
# };
|
||||||
|
#};
|
||||||
hardware.openrgb = {
|
hardware.openrgb = {
|
||||||
enable = true;
|
enable = true;
|
||||||
motherboard = "amd";
|
motherboard = "amd";
|
||||||
@ -78,4 +95,9 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#temporary bluetooth fix
|
||||||
|
# systemd.tmpfiles.rules = [
|
||||||
|
# "d /var/lib/bluetooth 700 root root - -"
|
||||||
|
# ];
|
||||||
|
# systemd.targets."bluetooth".after = ["systemd-tmpfiles-setup.service"];
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
||||||
boot.kernelModules = [ "kvm-amd" "nct6775" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.tmp.useTmpfs = false;
|
boot.tmp.useTmpfs = false;
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.tmp.cleanOnBoot = true;
|
||||||
@ -34,7 +34,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.btrbk = {
|
services.btrbk = {
|
||||||
extraPackages = [ pkgs.lz4 pkgs.mbuffer ];
|
|
||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
onCalendar = "hourly";
|
onCalendar = "hourly";
|
||||||
@ -57,40 +56,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
bak = {
|
|
||||||
onCalendar = "daily";
|
|
||||||
settings = {
|
|
||||||
stream_buffer = "256m";
|
|
||||||
stream_compress = "lz4";
|
|
||||||
incremental = "yes";
|
|
||||||
snapshot_create = "no";
|
|
||||||
snapshot_dir = "@snapshots";
|
|
||||||
timestamp_format = "long";
|
|
||||||
|
|
||||||
snapshot_preserve_min = "all";
|
|
||||||
target_preserve_min = "no";
|
|
||||||
target_preserve = "2m 4w 3d";
|
|
||||||
|
|
||||||
ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas";
|
|
||||||
ssh_user = "btrbk";
|
|
||||||
|
|
||||||
volume = {
|
|
||||||
"/mnt/snapshots/root" = {
|
|
||||||
subvolume = {
|
|
||||||
"@home" = {};
|
|
||||||
};
|
|
||||||
target = "ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Mars/@snapshots/@hades";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers = {
|
|
||||||
btrbk-bak = {
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
requires = [ "network-online.target" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -154,29 +119,24 @@
|
|||||||
useDHCP = false; # Deprecated
|
useDHCP = false; # Deprecated
|
||||||
hostName = "hades";
|
hostName = "hades";
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = false;
|
||||||
};
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ 24727 ];
|
|
||||||
allowedTCPPorts = [ 24727 ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# systemd.network = {
|
systemd.network = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# networks = {
|
networks = {
|
||||||
# "10-lan" = {
|
"10-lan" = {
|
||||||
# matchConfig.Name = "eno1";
|
matchConfig.Name = "enp34s0";
|
||||||
# ntp = [ "192.168.2.1" ];
|
ntp = [ "192.168.2.1" ];
|
||||||
# domains = [ "home.opel-online.de" ];
|
domains = [ "home.opel-online.de" ];
|
||||||
# networkConfig = {
|
networkConfig = {
|
||||||
# DHCP = "yes";
|
DHCP = "yes";
|
||||||
# IPv6AcceptRA = true;
|
IPv6AcceptRA = true;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
#powerManagement.powertop.enable = true;
|
#powerManagement.powertop.enable = true;
|
||||||
|
@ -31,11 +31,12 @@
|
|||||||
streamlink
|
streamlink
|
||||||
streamlink-twitch-gui-bin
|
streamlink-twitch-gui-bin
|
||||||
element-desktop
|
element-desktop
|
||||||
#nheko
|
nheko
|
||||||
pulsemixer
|
pulsemixer
|
||||||
#yubioath-flutter
|
#yubioath-flutter
|
||||||
nitrokey-app
|
nitrokey-app
|
||||||
kicad
|
kicad
|
||||||
|
yuzu-mainline
|
||||||
|
|
||||||
# Display
|
# Display
|
||||||
#light # xorg.xbacklight not supported. Other option is just use xrandr.
|
#light # xorg.xbacklight not supported. Other option is just use xrandr.
|
||||||
@ -46,6 +47,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
alacritty.settings.font.size = 11;
|
||||||
|
};
|
||||||
|
|
||||||
services = { # Applets
|
services = { # Applets
|
||||||
blueman-applet.enable = true; # Bluetooth
|
blueman-applet.enable = true; # Bluetooth
|
||||||
network-manager-applet.enable = true; # Network
|
network-manager-applet.enable = true; # Network
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
||||||
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
||||||
[(import ../../modules/wm/virtualisation/kvm-intel.nix)] ++ # Docker
|
[(import ../../modules/wm/virtualisation/kvm-intel.nix)] ++ # Docker
|
||||||
(import ../../modules/services/dmz); # Server Services
|
(import ../../modules/services/dmz) ++ # Server Services
|
||||||
|
(import ../../modules/hardware); # Hardware devices
|
||||||
|
|
||||||
boot = { # Boot options
|
boot = { # Boot options
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
@ -47,7 +48,7 @@
|
|||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns = true;
|
||||||
publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
|
@ -83,14 +83,11 @@
|
|||||||
"10-lan" = {
|
"10-lan" = {
|
||||||
matchConfig.Name = "enp6s18";
|
matchConfig.Name = "enp6s18";
|
||||||
ntp = [ "192.168.101.1" ];
|
ntp = [ "192.168.101.1" ];
|
||||||
#domains = [ "home.opel-online.de" ];
|
domains = [ "home.opel-online.de" ];
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
IPv6AcceptRA = true;
|
IPv6AcceptRA = true;
|
||||||
};
|
};
|
||||||
dns = [
|
|
||||||
"192.168.101.1"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -100,7 +97,7 @@
|
|||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
allowedTCPPorts = [ 80 443 ];
|
allowedTCPPorts = [ ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,78 +0,0 @@
|
|||||||
#
|
|
||||||
# Specific system configuration settings for desktop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ ├─ default.nix *
|
|
||||||
# │ └─ hardware-configuration.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# ├─ ./desktop
|
|
||||||
# │ └─ ./hyprland
|
|
||||||
# │ └─ hyprland.nix
|
|
||||||
# ├─ ./modules
|
|
||||||
# │ └─ ./programs
|
|
||||||
# │ └─ waybar.nix
|
|
||||||
# └─ ./hardware
|
|
||||||
# └─ default.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ config, nixpkgs, pkgs, user, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = # For now, if applying to other system, swap files
|
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
|
||||||
[(import ../../modules/wm/sway/default.nix)] ++ # Window Manager
|
|
||||||
(import ../../modules/wm/virtualisation) ++ # libvirt + Docker
|
|
||||||
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
|
|
||||||
(import ../../modules/hardware); # Hardware devices
|
|
||||||
|
|
||||||
boot = { # Boot options
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
loader = { # EFI Boot
|
|
||||||
systemd-boot.enable = lib.mkForce false;
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
timeout = 1; # Grub auto select time
|
|
||||||
};
|
|
||||||
|
|
||||||
lanzaboote = {
|
|
||||||
enable = true;
|
|
||||||
pkiBundle = "/etc/secureboot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# hardware.sane = { # Used for scanning with Xsane
|
|
||||||
# enable = false;
|
|
||||||
# extraBackends = [ pkgs.sane-airscan ];
|
|
||||||
# };
|
|
||||||
# hardware = {
|
|
||||||
# nitrokey.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# environment = {
|
|
||||||
# systemPackages = with pkgs; [
|
|
||||||
## simple-scan
|
|
||||||
## intel-media-driver
|
|
||||||
## alacritty
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
services = {
|
|
||||||
#auto-cpufreq.enable = true;
|
|
||||||
blueman.enable = true;
|
|
||||||
avahi = { # Needed to find wireless printer
|
|
||||||
enable = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
publish = { # Needed for detecting the scanner
|
|
||||||
enable = true;
|
|
||||||
addresses = true;
|
|
||||||
userServices = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,138 +0,0 @@
|
|||||||
#
|
|
||||||
# Hardware settings for Teclast F5 10" Laptop
|
|
||||||
# NixOS @ sda2
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# └─ ./hosts
|
|
||||||
# └─ ./laptop
|
|
||||||
# └─ hardware-configuration.nix *
|
|
||||||
#
|
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")] ++
|
|
||||||
[( import ../../modules/hardware/backup.nix )];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.tmp.useTmpfs = false;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
services.btrfs.autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "monthly";
|
|
||||||
fileSystems = [
|
|
||||||
"/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.btrbk = {
|
|
||||||
instances = {
|
|
||||||
hf = {
|
|
||||||
onCalendar = "hourly";
|
|
||||||
settings = {
|
|
||||||
incremental = "yes";
|
|
||||||
snapshot_create = "ondemand";
|
|
||||||
snapshot_dir = "@snapshots";
|
|
||||||
timestamp_format = "long";
|
|
||||||
|
|
||||||
snapshot_preserve = "2m 2w 5d 5h";
|
|
||||||
snapshot_preserve_min = "latest";
|
|
||||||
|
|
||||||
volume = {
|
|
||||||
"/mnt/snapshots/root" = {
|
|
||||||
snapshot_create = "always";
|
|
||||||
subvolume = {
|
|
||||||
"@home" = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/srv" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@nix,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/swap" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@swap,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/snapshots/root" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part2";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-id/nvme-ADATA_SX8200PNP_2J3320119186-part1";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
useDHCP = false; # Deprecated
|
|
||||||
hostName = "fuji";
|
|
||||||
networkmanager = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
#allowedUDPPorts = [ 24727 ];
|
|
||||||
#allowedTCPPorts = [ 24727 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "eno1";
|
|
||||||
ntp = [ "192.168.2.1" ];
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
#powerManagement.powertop.enable = true;
|
|
||||||
powerManagement = {
|
|
||||||
scsiLinkPolicy = "med_power_with_dipm";
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,45 +0,0 @@
|
|||||||
#
|
|
||||||
# Home-manager configuration for laptop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ └─ home.nix *
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./desktop
|
|
||||||
# └─ ./hyprland
|
|
||||||
# └─ hyprland.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
#../../modules/wm/hyprland/home.nix # Window Manager
|
|
||||||
#../../modules/wm/kde/home.nix # Window Manager
|
|
||||||
../../modules/home.nix # Window Manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home = { # Specific packages for laptop
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Applications
|
|
||||||
#firefox
|
|
||||||
chromium
|
|
||||||
thunderbird
|
|
||||||
streamlink
|
|
||||||
streamlink-twitch-gui-bin
|
|
||||||
element-desktop
|
|
||||||
#nheko
|
|
||||||
pulsemixer
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services = { # Applets
|
|
||||||
#blueman-applet.enable = true; # Bluetooth
|
|
||||||
network-manager-applet.enable = true; # Network
|
|
||||||
};
|
|
||||||
|
|
||||||
xsession.preferStatusNotifierItems = true;
|
|
||||||
|
|
||||||
}
|
|
@ -15,10 +15,10 @@
|
|||||||
# └─ default.nix
|
# └─ default.nix
|
||||||
#
|
#
|
||||||
|
|
||||||
{ config, lib, pkgs, user, pkgs-stable, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = # Home Manager Modules
|
||||||
(import ../modules/editors) ++
|
(import ../modules/editors) ++
|
||||||
(import ../modules/programs) ++
|
(import ../modules/programs) ++
|
||||||
(import ../modules/programs/configs) ++
|
(import ../modules/programs/configs) ++
|
||||||
@ -52,6 +52,7 @@
|
|||||||
|
|
||||||
# VideAudio
|
# VideAudio
|
||||||
mpv # Media Player
|
mpv # Media Player
|
||||||
|
youtube-dl
|
||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
galculator
|
galculator
|
||||||
@ -65,18 +66,18 @@
|
|||||||
freecad
|
freecad
|
||||||
|
|
||||||
# Fileanagement
|
# Fileanagement
|
||||||
kdePackages.ark
|
#okular # PDF viewer
|
||||||
|
#gnome.file-roller # Archive Manager
|
||||||
|
ark
|
||||||
pcmanfm # File Manager
|
pcmanfm # File Manager
|
||||||
rsync # Syncer $ rsync -r dir1/ dir2/
|
rsync # Syncer $ rsync -r dir1/ dir2/
|
||||||
unzip # Zip files
|
unzip # Zip files
|
||||||
unrar # Rar files
|
unrar # Rar files
|
||||||
epapirus-icon-theme
|
papirus-icon-theme
|
||||||
arc-theme
|
|
||||||
|
|
||||||
# General configuration
|
# Genel configuration
|
||||||
keepassxc
|
keepassxc
|
||||||
libreoffice
|
libreoffice
|
||||||
gimp
|
|
||||||
|
|
||||||
# Flatpak
|
# Flatpak
|
||||||
prusa-slicer
|
prusa-slicer
|
||||||
@ -89,30 +90,25 @@
|
|||||||
#ms-python.python
|
#ms-python.python
|
||||||
ms-vscode.cpptools
|
ms-vscode.cpptools
|
||||||
dracula-theme.theme-dracula
|
dracula-theme.theme-dracula
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
catppuccin.catppuccin-vsc-icons
|
||||||
|
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
sdkmanager
|
|
||||||
android-tools
|
|
||||||
];
|
];
|
||||||
|
|
||||||
file.".config/wall".source = ../modules/themes/wall.jpg;
|
file.".config/wall".source = ../modules/themes/wall.jpg;
|
||||||
file.".config/lockwall".source = ../modules/themes/lockwall.jpg;
|
file.".config/lockwall".source = ../modules/themes/lockwall.jpg;
|
||||||
# pointerCursor = { # This will set cursor systemwide so applications can not choose their own
|
pointerCursor = { # This will set cursor systemwide so applications can not choose their own
|
||||||
# name = "Dracula-cursors";
|
name = "Dracula-cursors";
|
||||||
# package = pkgs.dracula-theme;
|
package = pkgs.dracula-theme;
|
||||||
# size = 16;
|
size = 16;
|
||||||
# gtk.enable = true;
|
gtk.enable = true;
|
||||||
# };
|
};
|
||||||
stateVersion = "23.05";
|
stateVersion = "23.05";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
alacritty = {
|
|
||||||
settings.font.size = 11;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryFlavor = "curses";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -61,7 +61,7 @@
|
|||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns = true;
|
||||||
publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
|
@ -50,7 +50,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.btrbk = {
|
services.btrbk = {
|
||||||
extraPackages = [ pkgs.lz4 pkgs.mbuffer ];
|
|
||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
onCalendar = "hourly";
|
onCalendar = "hourly";
|
||||||
@ -189,24 +188,35 @@
|
|||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "enp6s18";
|
|
||||||
ntp = [ "192.168.2.1" ];
|
|
||||||
#domains = [ "home.opel-online.de" ];
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "jupiter";
|
hostName = "jupiter";
|
||||||
domain = "home.opel-online.de";
|
domain = "home.opel-online.de";
|
||||||
useDHCP = false; # For versatility sake, manually edit IP on nm-applet.
|
networkmanager = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
timeServers = [
|
||||||
|
"192.168.2.1"
|
||||||
|
];
|
||||||
|
interfaces = {
|
||||||
|
enp6s18 = {
|
||||||
|
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
||||||
|
# ipv4.addresses = [ {
|
||||||
|
# address = "45.142.114.153";
|
||||||
|
# prefixLength = 24;
|
||||||
|
# } ];
|
||||||
|
# ipv6.addresses = [ {
|
||||||
|
# address = "2a00:ccc1:101:19D::2";
|
||||||
|
# prefixLength = 64;
|
||||||
|
# } ];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# defaultGateway = "45.142.114.1";
|
||||||
|
defaultGateway6 = {
|
||||||
|
address = "fe80::1";
|
||||||
|
interface = "enp6s18";
|
||||||
|
};
|
||||||
|
# nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
||||||
#firewall = {
|
#firewall = {
|
||||||
# enable = false;
|
# enable = false;
|
||||||
# #allowedUDPPorts = [ 53 67 ];
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
@ -218,7 +228,7 @@
|
|||||||
powerManagement = {
|
powerManagement = {
|
||||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
powertop.enable = true;
|
powertop.enable = true;
|
||||||
#scsiLinkPolicy = "med_power_with_dipm";
|
scsiLinkPolicy = "med_power_with_dipm";
|
||||||
powerUpCommands = ''
|
powerUpCommands = ''
|
||||||
${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088
|
${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088
|
||||||
'';
|
'';
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
||||||
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
||||||
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
|
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
|
||||||
(import ../../modules/services/server); # Server Services
|
(import ../../modules/services/server) ++ # Server Services
|
||||||
|
(import ../../modules/hardware); # Hardware devices
|
||||||
|
|
||||||
boot = { # Boot options
|
boot = { # Boot options
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
@ -61,22 +62,22 @@
|
|||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryFlavor = "curses";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
#auto-cpufreq.enable = true;
|
#auto-cpufreq.enable = true;
|
||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
#avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
# enable = true;
|
enable = true;
|
||||||
# nssmdns = true;
|
nssmdns = true;
|
||||||
# publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
# enable = true;
|
enable = true;
|
||||||
# addresses = true;
|
addresses = true;
|
||||||
# userServices = true;
|
userServices = true;
|
||||||
# };
|
};
|
||||||
#};
|
};
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
maxretry = 5;
|
maxretry = 5;
|
||||||
|
@ -52,7 +52,6 @@
|
|||||||
subvolume = {
|
subvolume = {
|
||||||
"@" = {};
|
"@" = {};
|
||||||
"@home" = {};
|
"@home" = {};
|
||||||
"@var" = {};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -114,36 +113,32 @@
|
|||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
interfaces = {
|
||||||
|
ens18 = {
|
||||||
|
useDHCP = false; # For versatility sake, manually edit IP on nm-applet.
|
||||||
|
ipv4.addresses = [ {
|
||||||
|
address = "37.44.215.182";
|
||||||
|
prefixLength = 24;
|
||||||
|
} ];
|
||||||
|
ipv6.addresses = [ {
|
||||||
|
address = "2a13:7e80:0:ef::2";
|
||||||
|
prefixLength = 64;
|
||||||
|
} ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
defaultGateway = "37.44.215.1";
|
||||||
|
defaultGateway6 = {
|
||||||
|
address = "fe80::1";
|
||||||
|
interface = "ens18";
|
||||||
|
};
|
||||||
|
|
||||||
|
nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
allowedTCPPorts = [ 80 443 ];
|
allowedTCPPorts = [ 80 443 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "ens18";
|
|
||||||
|
|
||||||
address = [
|
|
||||||
"37.44.215.182/24"
|
|
||||||
"2a13:7e80:0:ef::2/64"
|
|
||||||
];
|
|
||||||
|
|
||||||
routes = [
|
|
||||||
{ Gateway = "37.44.215.1"; }
|
|
||||||
{ Gateway = "fe80::1"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
dns = [
|
|
||||||
"9.9.9.9"
|
|
||||||
"2620:fe::fe"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
#
|
|
||||||
# Specific system configuration settings for desktop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ ├─ default.nix *
|
|
||||||
# │ └─ hardware-configuration.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# ├─ ./desktop
|
|
||||||
# │ └─ ./hyprland
|
|
||||||
# │ └─ hyprland.nix
|
|
||||||
# ├─ ./modules
|
|
||||||
# │ └─ ./programs
|
|
||||||
# │ └─ waybar.nix
|
|
||||||
# └─ ./hardware
|
|
||||||
# └─ default.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ config, pkgs, user, agenix, impermanence, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = # For now, if applying to other system, swap files
|
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
|
||||||
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
|
||||||
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # Docker
|
|
||||||
(import ../../modules/services/kabtopci); # Server Services
|
|
||||||
|
|
||||||
boot = { # Boot options
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
loader = { # EFI Boot
|
|
||||||
grub = {
|
|
||||||
enable = true;
|
|
||||||
device = "/dev/vda";
|
|
||||||
};
|
|
||||||
timeout = 1; # Grub auto select time
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
|
||||||
zsh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,108 +0,0 @@
|
|||||||
#
|
|
||||||
# Hardware settings for Teclast F5 10" Laptop
|
|
||||||
# NixOS @ sda2
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# └─ ./hosts
|
|
||||||
# └─ ./laptop
|
|
||||||
# └─ hardware-configuration.nix *
|
|
||||||
#
|
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sr_mod" "virtio_blk" ];
|
|
||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
|
||||||
boot.kernelModules = [ ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.tmp.useTmpfs = false;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
services.btrfs.autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "monthly";
|
|
||||||
fileSystems = [
|
|
||||||
"/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/srv" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "space_cache=v2,ssd,noatime,subvol=@var,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd:9,space_cache=v2,ssd,noatime,subvol=@nix,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/swap" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@swap,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
useDHCP = false; # Deprecated
|
|
||||||
hostName = "kabtopci";
|
|
||||||
domain = "ci.kabtop.de";
|
|
||||||
networkmanager = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
interfaces = {
|
|
||||||
ens3 = {
|
|
||||||
useDHCP = false; # For versatility sake, manually edit IP on nm-applet.
|
|
||||||
ipv4.addresses = [ {
|
|
||||||
address = "195.90.221.87";
|
|
||||||
prefixLength = 22;
|
|
||||||
} ];
|
|
||||||
ipv6.addresses = [ {
|
|
||||||
address = "2a00:6800:3:d5b::2";
|
|
||||||
prefixLength = 64;
|
|
||||||
} ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
defaultGateway = "195.90.220.1";
|
|
||||||
defaultGateway6 = {
|
|
||||||
address = "2a00:6800:3::1";
|
|
||||||
interface = "ens3";
|
|
||||||
};
|
|
||||||
|
|
||||||
nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ ];
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
#
|
|
||||||
# Home-manager configuration for laptop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ └─ home.nix *
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./desktop
|
|
||||||
# └─ ./hyprland
|
|
||||||
# └─ hyprland.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
../../modules/home.nix # Window Manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home = { # Specific packages for laptop
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Applications
|
|
||||||
|
|
||||||
# Display
|
|
||||||
#light # xorg.xbacklight not supported. Other option is just use xrandr.
|
|
||||||
|
|
||||||
# Power Management
|
|
||||||
#auto-cpufreq # Power management
|
|
||||||
#tlp # Power management
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
alacritty.settings.font.size = 11;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,58 +0,0 @@
|
|||||||
#
|
|
||||||
# Specific system configuration settings for desktop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ ├─ default.nix *
|
|
||||||
# │ └─ hardware-configuration.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# ├─ ./desktop
|
|
||||||
# │ └─ ./hyprland
|
|
||||||
# │ └─ hyprland.nix
|
|
||||||
# ├─ ./modules
|
|
||||||
# │ └─ ./programs
|
|
||||||
# │ └─ waybar.nix
|
|
||||||
# └─ ./hardware
|
|
||||||
# └─ default.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ config, pkgs, user, agenix, impermanence, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = # For now, if applying to other system, swap files
|
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
|
||||||
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
|
||||||
[(import ../../modules/wm/virtualisation/kvm-intel.nix)] ++ # Docker
|
|
||||||
(import ../../modules/services/kubemaster); # Server Services
|
|
||||||
|
|
||||||
boot = { # Boot options
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
loader = { # EFI Boot
|
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
timeout = 1; # Grub auto select time
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
|
||||||
zsh.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
avahi = { # Needed to find wireless printer
|
|
||||||
enable = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
publish = { # Needed for detecting the scanner
|
|
||||||
enable = true;
|
|
||||||
addresses = true;
|
|
||||||
userServices = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,117 +0,0 @@
|
|||||||
#
|
|
||||||
# Hardware settings for Teclast F5 10" Laptop
|
|
||||||
# NixOS @ sda2
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# └─ ./hosts
|
|
||||||
# └─ ./laptop
|
|
||||||
# └─ hardware-configuration.nix *
|
|
||||||
#
|
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
boot.tmp.useTmpfs = false;
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
services.btrfs.autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "monthly";
|
|
||||||
fileSystems = [
|
|
||||||
"/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/srv" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@var,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@nix,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/swap" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@swap,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/snapshots/root" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "enp0s31f6";
|
|
||||||
ntp = [ "192.168.2.1" ];
|
|
||||||
#domains = [ "home.opel-online.de" ];
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
dns = [
|
|
||||||
"192.168.2.1"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking = {
|
|
||||||
useDHCP = false; # Deprecated
|
|
||||||
hostName = "kubemaster-1";
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ ];
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
powerManagement = {
|
|
||||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
|
||||||
powertop.enable = true;
|
|
||||||
powerUpCommands = ''
|
|
||||||
${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/e036f437-bc91-4398-b182-7cf5724e23a2
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
#
|
|
||||||
# Home-manager configuration for laptop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ └─ home.nix *
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./desktop
|
|
||||||
# └─ ./hyprland
|
|
||||||
# └─ hyprland.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
../../modules/home.nix # Window Manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home = { # Specific packages for laptop
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Applications
|
|
||||||
|
|
||||||
# Display
|
|
||||||
#light # xorg.xbacklight not supported. Other option is just use xrandr.
|
|
||||||
|
|
||||||
# Power Management
|
|
||||||
#auto-cpufreq # Power management
|
|
||||||
#tlp # Power management
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
alacritty.settings.font.size = 11;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -41,6 +41,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# hardware.sane = { # Used for scanning with Xsane
|
||||||
|
# enable = false;
|
||||||
|
# extraBackends = [ pkgs.sane-airscan ];
|
||||||
|
# };
|
||||||
|
hardware = {
|
||||||
|
nitrokey.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
# simple-scan
|
# simple-scan
|
||||||
@ -50,7 +58,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
programs = { # No xbacklight, this is the alterantive
|
||||||
|
zsh.enable = true;
|
||||||
|
dconf.enable = true;
|
||||||
light.enable = true;
|
light.enable = true;
|
||||||
|
ssh.startAgent = false;
|
||||||
|
gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
pinentryFlavor = "curses";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@ -64,17 +80,21 @@
|
|||||||
logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed
|
logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed
|
||||||
#auto-cpufreq.enable = true;
|
#auto-cpufreq.enable = true;
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
|
printing = { # Printing and drivers for TS5300
|
||||||
|
enable = true;
|
||||||
|
drivers = [ pkgs.gutenprint ];
|
||||||
|
};
|
||||||
avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns = true;
|
||||||
publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
userServices = true;
|
userServices = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
tailscale.enable = true;
|
||||||
|
|
||||||
mainsail.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#temporary bluetooth fix
|
#temporary bluetooth fix
|
@ -145,12 +145,19 @@
|
|||||||
interfaces = {
|
interfaces = {
|
||||||
wlan0 = {
|
wlan0 = {
|
||||||
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
||||||
|
#ipv4.addresses = [ {
|
||||||
|
# address = "192.168.0.51";
|
||||||
|
# prefixLength = 24;
|
||||||
|
#} ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#defaultGateway = "192.168.0.1";
|
||||||
|
#nameservers = [ "192.168.0.4" ];
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
checkReversePath = "loose";
|
||||||
#allowedUDPPorts = [ 53 67 ];
|
# enable = false;
|
||||||
allowedTCPPorts = [ 80 443 ];
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
|
# #allowedTCPPorts = [ 53 80 443 9443 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -43,6 +43,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
alacritty.settings.font.size = 11;
|
||||||
|
};
|
||||||
|
|
||||||
services = { # Applets
|
services = { # Applets
|
||||||
blueman-applet.enable = true; # Bluetooth
|
blueman-applet.enable = true; # Bluetooth
|
||||||
network-manager-applet.enable = true; # Network
|
network-manager-applet.enable = true; # Network
|
@ -1,81 +0,0 @@
|
|||||||
#
|
|
||||||
# Specific system configuration settings for desktop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ ├─ default.nix *
|
|
||||||
# │ └─ hardware-configuration.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# ├─ ./desktop
|
|
||||||
# │ └─ ./hyprland
|
|
||||||
# │ └─ hyprland.nix
|
|
||||||
# ├─ ./modules
|
|
||||||
# │ └─ ./programs
|
|
||||||
# │ └─ waybar.nix
|
|
||||||
# └─ ./hardware
|
|
||||||
# └─ default.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ lib, config, pkgs, user, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = # For now, if applying to other system, swap files
|
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
|
||||||
#[(import ../../modules/wm/hyprland/default.nix)] ++ # Window Manager
|
|
||||||
[(import ../../modules/wm/sway/default.nix)] ++ # Window Manager
|
|
||||||
[(import ../../modules/wm/virtualisation/docker.nix)] ++ # Docker
|
|
||||||
[(import ../../modules/wm/virtualisation/kvm-intel.nix)] ++ # kvm module options
|
|
||||||
(import ../../modules/hardware); # Hardware devices
|
|
||||||
|
|
||||||
boot = { # Boot options
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
initrd.prepend = [ "${./patched-SSDT4}" ];
|
|
||||||
|
|
||||||
loader = { # EFI Boot
|
|
||||||
systemd-boot.enable = lib.mkForce false;
|
|
||||||
efi = {
|
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot";
|
|
||||||
};
|
|
||||||
timeout = 1; # Grub auto select time
|
|
||||||
};
|
|
||||||
|
|
||||||
lanzaboote = {
|
|
||||||
enable = true;
|
|
||||||
pkiBundle = "/etc/secureboot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
nitrokey.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = with pkgs; [
|
|
||||||
linux-firmware
|
|
||||||
intel-media-driver
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
|
||||||
light.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.sleep.extraConfig = "HibernateDelaySec=1h";
|
|
||||||
services = {
|
|
||||||
logind.lidSwitch = "suspend-then-hibernate"; # Laptop does not go to sleep when lid is closed
|
|
||||||
blueman.enable = true;
|
|
||||||
avahi = { # Needed to find wireless printer
|
|
||||||
enable = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
publish = { # Needed for detecting the scanner
|
|
||||||
enable = true;
|
|
||||||
addresses = true;
|
|
||||||
userServices = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#tailscale.enable = true;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,224 +0,0 @@
|
|||||||
#
|
|
||||||
# Hardware settings for Teclast F5 10" Laptop
|
|
||||||
# NixOS @ sda2
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# └─ ./hosts
|
|
||||||
# └─ ./laptop
|
|
||||||
# └─ hardware-configuration.nix *
|
|
||||||
#
|
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")] ++
|
|
||||||
[( import ../../modules/hardware/backup.nix )];
|
|
||||||
|
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
||||||
kernelModules = [ "i915" "kvm_intel" "vfio_pci" "vfio" "vfio_iommu_type1" ];
|
|
||||||
systemd.enable = true;
|
|
||||||
luks = {
|
|
||||||
devices."crypted" = {
|
|
||||||
device = "/dev/disk/by-partlabel/disk-nvme0n1-luks";
|
|
||||||
allowDiscards = true;
|
|
||||||
bypassWorkqueues = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
kernelModules = [ "kvm-intel" ];
|
|
||||||
kernelParams = [ "luks.options=fido2-device=auto" "sysrq_always_enabled=1" "pcie_aspm=force" ];
|
|
||||||
extraModprobeConfig = ''
|
|
||||||
options i915 enable_guc=3
|
|
||||||
'';
|
|
||||||
tmp.useTmpfs = false;
|
|
||||||
tmp.cleanOnBoot = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
zramSwap.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
services = {
|
|
||||||
btrfs.autoScrub = {
|
|
||||||
enable = true;
|
|
||||||
interval = "monthly";
|
|
||||||
fileSystems = [
|
|
||||||
"/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
udev.extraRules = ''
|
|
||||||
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount -o noatime,compress-force=zstd:15,ssd_spread,commit=120 --no-block --automount=yes --collect $devnode /run/media/mmcblk0p1"
|
|
||||||
'';
|
|
||||||
|
|
||||||
btrbk = {
|
|
||||||
extraPackages = [ pkgs.lz4 pkgs.mbuffer ];
|
|
||||||
instances = {
|
|
||||||
hf = {
|
|
||||||
onCalendar = "hourly";
|
|
||||||
settings = {
|
|
||||||
incremental = "yes";
|
|
||||||
snapshot_create = "ondemand";
|
|
||||||
snapshot_dir = "@snapshots";
|
|
||||||
timestamp_format = "long";
|
|
||||||
|
|
||||||
snapshot_preserve = "2m 2w 5d 5h";
|
|
||||||
snapshot_preserve_min = "latest";
|
|
||||||
|
|
||||||
volume = {
|
|
||||||
"/mnt/snapshots/root" = {
|
|
||||||
snapshot_create = "always";
|
|
||||||
subvolume = {
|
|
||||||
"@home" = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
bak = {
|
|
||||||
onCalendar = "daily";
|
|
||||||
settings = {
|
|
||||||
stream_buffer = "256m";
|
|
||||||
stream_compress = "lz4";
|
|
||||||
incremental = "yes";
|
|
||||||
snapshot_create = "no";
|
|
||||||
snapshot_dir = "@snapshots";
|
|
||||||
timestamp_format = "long";
|
|
||||||
|
|
||||||
snapshot_preserve_min = "all";
|
|
||||||
target_preserve_min = "no";
|
|
||||||
target_preserve = "2m 4w 3d";
|
|
||||||
|
|
||||||
ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas";
|
|
||||||
ssh_user = "btrbk";
|
|
||||||
|
|
||||||
volume = {
|
|
||||||
"/mnt/snapshots/root" = {
|
|
||||||
subvolume = {
|
|
||||||
"@home" = {};
|
|
||||||
};
|
|
||||||
target = "ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Mars/@snapshots/@lifebook";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers = {
|
|
||||||
btrbk-bak = {
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
requires = [ "network-online.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-label/NIXBOOT";
|
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/home" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@home,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/nix" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@nix,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/srv" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@srv,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/swap" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@swap,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/opt" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@opt,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@var,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/snapshots/root" =
|
|
||||||
{ device = "/dev/mapper/crypted";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
fileSystems."/mnt/Pluto" =
|
|
||||||
{ device = "jupiter:/Pluto";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [ "nofail,noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/mnt/Mars" =
|
|
||||||
{ device = "jupiter:/Mars";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [ "nofail,noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
|
||||||
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
useDHCP = false; # Deprecated
|
|
||||||
hostName = "lifebook";
|
|
||||||
wireless.iwd.enable = true;
|
|
||||||
networkmanager = {
|
|
||||||
enable = true;
|
|
||||||
wifi = {
|
|
||||||
backend = "iwd";
|
|
||||||
powersave = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# interfaces = {
|
|
||||||
# wlan0 = {
|
|
||||||
# useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
|
||||||
# #ipv4.addresses = [ {
|
|
||||||
# # address = "192.168.0.51";
|
|
||||||
# # prefixLength = 24;
|
|
||||||
# #} ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
#defaultGateway = "192.168.0.1";
|
|
||||||
#nameservers = [ "192.168.0.4" ];
|
|
||||||
firewall = {
|
|
||||||
#checkReversePath = false;
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ 24727 51820 ];
|
|
||||||
allowedTCPPorts = [ 24727 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
powerManagement = {
|
|
||||||
powertop.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
Binary file not shown.
@ -53,7 +53,7 @@
|
|||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryFlavor = "curses";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryFlavor = "curses";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -53,7 +53,7 @@
|
|||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns = true;
|
||||||
publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = true;
|
addresses = true;
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.btrbk = {
|
services.btrbk = {
|
||||||
extraPackages = [ pkgs.lz4 pkgs.mbuffer ];
|
extraPackages = [ pkgs.lz4 ];
|
||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
onCalendar = "hourly";
|
onCalendar = "hourly";
|
||||||
@ -78,7 +78,6 @@
|
|||||||
bak = {
|
bak = {
|
||||||
onCalendar = "weekly";
|
onCalendar = "weekly";
|
||||||
settings = {
|
settings = {
|
||||||
stream_buffer = "265m";
|
|
||||||
stream_compress = "lz4";
|
stream_compress = "lz4";
|
||||||
incremental = "yes";
|
incremental = "yes";
|
||||||
snapshot_create = "no";
|
snapshot_create = "no";
|
||||||
@ -88,35 +87,20 @@
|
|||||||
snapshot_preserve_min = "all";
|
snapshot_preserve_min = "all";
|
||||||
target_preserve_min = "no";
|
target_preserve_min = "no";
|
||||||
target_preserve = "4w 2m";
|
target_preserve = "4w 2m";
|
||||||
archive_preserve_min = "no";
|
|
||||||
archive_preserve = "4w 2m";
|
|
||||||
|
|
||||||
ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk";
|
ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk";
|
||||||
ssh_user = "btrbk";
|
ssh_user = "btrbk";
|
||||||
|
|
||||||
volume = {
|
volume = {
|
||||||
"ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Mars" = {
|
"ssh://jupiter.home.opel-online.de/mnt/snapshots/Mars" = {
|
||||||
|
target = "/mnt/nas/Backups/Mars";
|
||||||
subvolume = {
|
subvolume = {
|
||||||
"@nas" = {
|
"@nas" = {};
|
||||||
target = "/mnt/nas/Backups/Mars";
|
|
||||||
};
|
|
||||||
"@hades/@home" = {
|
|
||||||
target = "/mnt/nas/Backups/Hades";
|
|
||||||
snapshot_dir = "@snapshots/@hades";
|
|
||||||
};
|
|
||||||
"@lifebook/@home" = {
|
|
||||||
target = "/mnt/nas/Backups/Lifebook";
|
|
||||||
snapshot_dir = "@snapshots/@lifebook";
|
|
||||||
};
|
|
||||||
# "@steamdeck/@home" = {
|
|
||||||
# target = "/mnt/nas/Backups/Steamdeck";
|
|
||||||
# snapshot_dir = "@snapshots/@steamdeck";
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
volume = {
|
volume = {
|
||||||
"ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Pluto" = {
|
"ssh://jupiter.home.opel-online.de/mnt/snapshots/Pluto" = {
|
||||||
target = "/mnt/nas/Backups/Pluto";
|
target = "/mnt/nas/Backups/Pluto";
|
||||||
subvolume = {
|
subvolume = {
|
||||||
"@/Games" = {};
|
"@/Games" = {};
|
||||||
@ -129,17 +113,36 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# lf = {
|
||||||
|
# onCalendar = "daily";
|
||||||
|
# settings = {
|
||||||
|
# incremental = "yes";
|
||||||
|
# snapshot_create = "ondemand";
|
||||||
|
# snapshot_dir = "@snapshots";
|
||||||
|
# timestamp_format = "long";
|
||||||
|
#
|
||||||
|
# snapshot_preserve = "2m 2w 5d";
|
||||||
|
# snapshot_preserve_min = "latest";
|
||||||
|
#
|
||||||
|
# volume = {
|
||||||
|
# "/mnt/snapshots/Pluto" = {
|
||||||
|
# snapshot_create = "always";
|
||||||
|
# subvolume = {
|
||||||
|
# "@" = {};
|
||||||
|
# "@/Backups" = {};
|
||||||
|
# "@/Games" = {};
|
||||||
|
# "@/IT" = {};
|
||||||
|
# "@/Media" = {};
|
||||||
|
# "@/Pictures" = {};
|
||||||
|
# "@/Rest" = {};
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services = {
|
|
||||||
btrbk-bak = {
|
|
||||||
after = [ "network-online.target" ];
|
|
||||||
requires = [ "network-online.target" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
@ -195,24 +198,35 @@
|
|||||||
|
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||||||
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "enp6s18";
|
|
||||||
ntp = [ "192.168.2.1" ];
|
|
||||||
#domains = [ "home.opel-online.de" ];
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "nasbak";
|
hostName = "nasbak";
|
||||||
domain = "home.opel-online.de";
|
domain = "home.opel-online.de";
|
||||||
useDHCP = false; # For versatility sake, manually edit IP on nm-applet.
|
networkmanager = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
timeServers = [
|
||||||
|
"192.168.2.1"
|
||||||
|
];
|
||||||
|
interfaces = {
|
||||||
|
enp6s18 = {
|
||||||
|
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
||||||
|
# ipv4.addresses = [ {
|
||||||
|
# address = "45.142.114.153";
|
||||||
|
# prefixLength = 24;
|
||||||
|
# } ];
|
||||||
|
# ipv6.addresses = [ {
|
||||||
|
# address = "2a00:ccc1:101:19D::2";
|
||||||
|
# prefixLength = 64;
|
||||||
|
# } ];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# defaultGateway = "45.142.114.1";
|
||||||
|
defaultGateway6 = {
|
||||||
|
address = "fe80::1";
|
||||||
|
interface = "enp6s18";
|
||||||
|
};
|
||||||
|
# nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
||||||
#firewall = {
|
#firewall = {
|
||||||
# enable = false;
|
# enable = false;
|
||||||
# #allowedUDPPorts = [ 53 67 ];
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
#
|
|
||||||
# Home-manager configuration for laptop
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ ./laptop
|
|
||||||
# │ └─ home.nix *
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./desktop
|
|
||||||
# └─ ./hyprland
|
|
||||||
# └─ hyprland.nix
|
|
||||||
#
|
|
||||||
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
#../../modules/wm/hyprland/home.nix # Window Manager
|
|
||||||
../../modules/wm/sway/home.nix # Window Manager
|
|
||||||
../../modules/home.nix # Window Manager
|
|
||||||
];
|
|
||||||
|
|
||||||
home = { # Specific packages for laptop
|
|
||||||
packages = with pkgs; [
|
|
||||||
# Applications
|
|
||||||
firefox
|
|
||||||
intel-gpu-tools
|
|
||||||
pulsemixer
|
|
||||||
|
|
||||||
# Display
|
|
||||||
light # xorg.xbacklight not supported. Other option is just use xrandr.
|
|
||||||
|
|
||||||
# Power Management
|
|
||||||
#auto-cpufreq # Power management
|
|
||||||
#tlp # Power management
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
|
||||||
alacritty.settings.font.size = 11;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = { # Applets
|
|
||||||
blueman-applet.enable = true; # Bluetooth
|
|
||||||
network-manager-applet.enable = true; # Network
|
|
||||||
};
|
|
||||||
|
|
||||||
xsession.preferStatusNotifierItems = true;
|
|
||||||
|
|
||||||
}
|
|
@ -57,22 +57,22 @@
|
|||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
pinentryPackage = pkgs.pinentry-curses;
|
pinentryFlavor = "curses";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
#auto-cpufreq.enable = true;
|
#auto-cpufreq.enable = true;
|
||||||
qemuGuest.enable = true;
|
qemuGuest.enable = true;
|
||||||
#avahi = { # Needed to find wireless printer
|
avahi = { # Needed to find wireless printer
|
||||||
# enable = true;
|
enable = true;
|
||||||
# nssmdns = true;
|
nssmdns = true;
|
||||||
# publish = { # Needed for detecting the scanner
|
publish = { # Needed for detecting the scanner
|
||||||
# enable = true;
|
enable = true;
|
||||||
# addresses = true;
|
addresses = true;
|
||||||
# userServices = true;
|
userServices = true;
|
||||||
# };
|
};
|
||||||
#};
|
};
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
maxretry = 5;
|
maxretry = 5;
|
||||||
|
@ -20,22 +20,12 @@
|
|||||||
{ config, pkgs, user, jovian-nixos, lib, ... }:
|
{ config, pkgs, user, jovian-nixos, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
specialisation = {
|
|
||||||
sway.configuration = {
|
|
||||||
imports =
|
|
||||||
[(import ../../modules/wm/sway)];
|
|
||||||
|
|
||||||
jovian.steam.enable = lib.mkForce false;
|
|
||||||
services.desktopManager.plasma6.enable = lib.mkForce false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = # For now, if applying to other system, swap files
|
imports = # For now, if applying to other system, swap files
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
||||||
|
[(import ../../modules/wm/steam/default.nix)] ++ # jovian steam
|
||||||
|
[(import ../../modules/wm/kde/default.nix)] ++ # Window Manager
|
||||||
(import ../../modules/wm/virtualisation) ++ # libvirt + Docker
|
(import ../../modules/wm/virtualisation) ++ # libvirt + Docker
|
||||||
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
|
[(import ../../modules/wm/virtualisation/kvm-amd.nix)] ++ # kvm module options
|
||||||
[(import ../../modules/wm/steam)] ++
|
|
||||||
[(import ../../modules/wm/kde)] ++
|
|
||||||
(import ../../modules/hardware); # Hardware devices
|
(import ../../modules/hardware); # Hardware devices
|
||||||
|
|
||||||
boot = { # Boot options
|
boot = { # Boot options
|
||||||
@ -54,12 +44,30 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# hardware.sane = { # Used for scanning with Xsane
|
||||||
|
# enable = false;
|
||||||
|
# extraBackends = [ pkgs.sane-airscan ];
|
||||||
|
# };
|
||||||
hardware = {
|
hardware = {
|
||||||
nitrokey.enable = true;
|
nitrokey.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# environment = {
|
||||||
|
# systemPackages = with pkgs; [
|
||||||
|
## alacritty
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
programs = { # No xbacklight, this is the alterantive
|
programs = { # No xbacklight, this is the alterantive
|
||||||
|
zsh.enable = true;
|
||||||
|
dconf.enable = true;
|
||||||
light.enable = true;
|
light.enable = true;
|
||||||
|
ssh.startAgent = false;
|
||||||
|
gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
#pinentryFlavor = "curses";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
luks = {
|
luks = {
|
||||||
@ -50,66 +50,33 @@
|
|||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount -o noatime,compress-force=zstd:15,ssd_spread,commit=120 --no-block --automount=yes --collect $devnode /run/media/mmcblk0p1"
|
ACTION=="add", SUBSYSTEM=="block", KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="${pkgs.systemd}/bin/systemd-mount -o noatime,compress-force=zstd:15,ssd_spread,commit=120 --no-block --automount=yes --collect $devnode /run/media/mmcblk0p1"
|
||||||
'';
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
btrbk = {
|
services.btrbk = {
|
||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
onCalendar = "hourly";
|
onCalendar = "hourly";
|
||||||
settings = {
|
settings = {
|
||||||
incremental = "yes";
|
incremental = "yes";
|
||||||
snapshot_create = "ondemand";
|
snapshot_create = "ondemand";
|
||||||
snapshot_dir = "@snapshots";
|
snapshot_dir = "@snapshots";
|
||||||
timestamp_format = "long";
|
timestamp_format = "long";
|
||||||
|
|
||||||
snapshot_preserve = "2m 2w 5d 5h";
|
snapshot_preserve = "2m 2w 5d 5h";
|
||||||
snapshot_preserve_min = "latest";
|
snapshot_preserve_min = "latest";
|
||||||
|
|
||||||
volume = {
|
volume = {
|
||||||
"/mnt/snapshots/root" = {
|
"/mnt/snapshots/root" = {
|
||||||
snapshot_create = "always";
|
snapshot_create = "always";
|
||||||
subvolume = {
|
subvolume = {
|
||||||
"@home" = {};
|
"@home" = {};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# bak = {
|
|
||||||
# onCalendar = "daily";
|
|
||||||
# settings = {
|
|
||||||
# stream_buffer = "256m";
|
|
||||||
# stream_compress = "lz4";
|
|
||||||
# incremental = "yes";
|
|
||||||
# snapshot_create = "no";
|
|
||||||
# snapshot_dir = "@snapshots";
|
|
||||||
# timestamp_format = "long";
|
|
||||||
#
|
|
||||||
# snapshot_preserve_min = "all";
|
|
||||||
# target_preserve_min = "no";
|
|
||||||
# target_preserve = "2m 4w 3d";
|
|
||||||
#
|
|
||||||
# ssh_identity = "/etc/btrbk/ssh/id_ed25519_btrbk_nas";
|
|
||||||
# ssh_user = "btrbk";
|
|
||||||
#
|
|
||||||
# volume = {
|
|
||||||
# "/mnt/snapshots/root" = {
|
|
||||||
# subvolume = {
|
|
||||||
# "@home" = {};
|
|
||||||
# };
|
|
||||||
# target = "ssh://jupiter.home.opel-online.de:2220/mnt/snapshots/Mars/@snapshots/@steamdeck";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#
|
|
||||||
# systemd.timers = {
|
|
||||||
# btrbk-bak = {
|
|
||||||
# requires = [ "network-online.target" ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/mapper/crypted";
|
{ device = "/dev/mapper/crypted";
|
||||||
@ -204,9 +171,9 @@
|
|||||||
#nameservers = [ "192.168.0.4" ];
|
#nameservers = [ "192.168.0.4" ];
|
||||||
firewall = {
|
firewall = {
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
enable = true;
|
# enable = false;
|
||||||
allowedUDPPorts = [ 24727 ];
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
allowedTCPPorts = [ 24727 ];
|
# #allowedTCPPorts = [ 53 80 443 9443 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -14,17 +14,12 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
specialisation = {
|
|
||||||
sway.configuration = {
|
|
||||||
imports =
|
|
||||||
[(import ../../modules/wm/sway/home.nix)];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[(import ../../modules/home.nix)] ++ # Window Manager
|
[
|
||||||
[(import ../../modules/wm/steam/home.nix)] ++
|
../../modules/wm/steam/home.nix # Window Manager
|
||||||
[(import ../../modules/wm/kde/home.nix)];
|
../../modules/wm/kde/home.nix # Window Manager
|
||||||
|
../../modules/home.nix # Window Manager
|
||||||
|
];
|
||||||
|
|
||||||
home = { # Specific packages for laptop
|
home = { # Specific packages for laptop
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@ -48,6 +43,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
alacritty.settings.font.size = 11;
|
||||||
|
};
|
||||||
|
|
||||||
services = { # Applets
|
services = { # Applets
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,114 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
# Original bash script by Luis R. Rodriguez
|
|
||||||
# Re-written in Python by z8
|
|
||||||
# Re-re-written to patch supported devices automatically by notthebee
|
|
||||||
|
|
||||||
import re
|
|
||||||
import subprocess
|
|
||||||
import os
|
|
||||||
import platform
|
|
||||||
from enum import Enum
|
|
||||||
|
|
||||||
class ASPM(Enum):
|
|
||||||
DISABLED = 0b00
|
|
||||||
L0s = 0b01
|
|
||||||
L1 = 0b10
|
|
||||||
L0sL1 = 0b11
|
|
||||||
|
|
||||||
|
|
||||||
def run_prerequisites():
|
|
||||||
if platform.system() != "Linux":
|
|
||||||
raise OSError("This script only runs on Linux-based systems")
|
|
||||||
if not os.environ.get("SUDO_UID") and os.geteuid() != 0:
|
|
||||||
raise PermissionError("This script needs root privileges to run")
|
|
||||||
lspci_detected = subprocess.run(["which", "lspci"], stdout = subprocess.DEVNULL, stderr = subprocess.DEVNULL)
|
|
||||||
if lspci_detected.returncode > 0:
|
|
||||||
raise Exception("lspci not detected. Please install pciutils")
|
|
||||||
lspci_detected = subprocess.run(["which", "setpci"], stdout = subprocess.DEVNULL, stderr = subprocess.DEVNULL)
|
|
||||||
if lspci_detected.returncode > 0:
|
|
||||||
raise Exception("setpci not detected. Please install pciutils")
|
|
||||||
|
|
||||||
|
|
||||||
def get_device_name(addr):
|
|
||||||
p = subprocess.Popen([
|
|
||||||
"lspci",
|
|
||||||
"-s",
|
|
||||||
addr,
|
|
||||||
], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
||||||
return p.communicate()[0].splitlines()[0].decode()
|
|
||||||
|
|
||||||
def read_all_bytes(device):
|
|
||||||
all_bytes = bytearray()
|
|
||||||
device_name = get_device_name(device)
|
|
||||||
p = subprocess.Popen([
|
|
||||||
"lspci",
|
|
||||||
"-s",
|
|
||||||
device,
|
|
||||||
"-xxx"
|
|
||||||
], stdout= subprocess.PIPE, stderr=subprocess.PIPE)
|
|
||||||
ret = p.communicate()
|
|
||||||
ret = ret[0].decode()
|
|
||||||
for line in ret.splitlines():
|
|
||||||
if not device_name in line and ": " in line:
|
|
||||||
all_bytes.extend(bytearray.fromhex(line.split(": ")[1]))
|
|
||||||
if len(all_bytes) < 256:
|
|
||||||
exit()
|
|
||||||
return all_bytes
|
|
||||||
|
|
||||||
def find_byte_to_patch(bytes, pos):
|
|
||||||
pos = bytes[pos]
|
|
||||||
if bytes[pos] != 0x10:
|
|
||||||
pos += 0x1
|
|
||||||
return find_byte_to_patch(bytes, pos)
|
|
||||||
else:
|
|
||||||
pos += 0x10
|
|
||||||
return pos
|
|
||||||
|
|
||||||
def patch_byte(device, position, value):
|
|
||||||
subprocess.Popen([
|
|
||||||
"setpci",
|
|
||||||
"-s",
|
|
||||||
device,
|
|
||||||
f"{hex(position)}.B={hex(value)}"
|
|
||||||
]).communicate()
|
|
||||||
|
|
||||||
def patch_device(addr, aspm_value):
|
|
||||||
endpoint_bytes = read_all_bytes(addr)
|
|
||||||
byte_position_to_patch = find_byte_to_patch(endpoint_bytes, 0x34)
|
|
||||||
if int(endpoint_bytes[byte_position_to_patch]) & 0b11 != aspm_value.value:
|
|
||||||
patched_byte = int(endpoint_bytes[byte_position_to_patch])
|
|
||||||
patched_byte = patched_byte >> 2
|
|
||||||
patched_byte = patched_byte << 2
|
|
||||||
patched_byte = patched_byte | aspm_value.value
|
|
||||||
|
|
||||||
patch_byte(addr, byte_position_to_patch, patched_byte)
|
|
||||||
print(f"{addr}: Enabled ASPM {aspm_value.name}")
|
|
||||||
else:
|
|
||||||
print(f"{addr}: Already has ASPM {aspm_value.name} enabled")
|
|
||||||
|
|
||||||
|
|
||||||
def list_supported_devices():
|
|
||||||
pcie_addr_regex = r"([0-9a-f]{2}:[0-9a-f]{2}.[0-9a-f])"
|
|
||||||
lspci = subprocess.run("lspci -vv", shell=True, capture_output=True).stdout
|
|
||||||
lspci_arr = re.split(pcie_addr_regex, str(lspci))[1:]
|
|
||||||
lspci_arr = [ x+y for x,y in zip(lspci_arr[0::2], lspci_arr[1::2]) ]
|
|
||||||
|
|
||||||
aspm_devices = {}
|
|
||||||
for dev in lspci_arr:
|
|
||||||
device_addr = re.findall(pcie_addr_regex, dev)[0]
|
|
||||||
if "ASPM" not in dev or "ASPM not supported" in dev:
|
|
||||||
continue
|
|
||||||
aspm_support = re.findall(r"ASPM (L[L0-1s ]*),", dev)
|
|
||||||
if aspm_support:
|
|
||||||
aspm_devices.update({device_addr: ASPM[aspm_support[0].replace(" ", "")]})
|
|
||||||
return aspm_devices
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
run_prerequisites()
|
|
||||||
for device, aspm_mode in list_supported_devices().items():
|
|
||||||
patch_device(device, aspm_mode)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@ -9,10 +9,7 @@
|
|||||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDU2NJ9xwYnp6/frIOv96ih8psiFcC2eOQeT+ZEMW5rq";
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDU2NJ9xwYnp6/frIOv96ih8psiFcC2eOQeT+ZEMW5rq";
|
||||||
roles = [ "source" "info" "send" ];
|
roles = [ "source" "info" "send" ];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIma7jNVQZM+lFMOKUex0+cyDpeUA3Wo4SEJ7P9YnHPG";
|
|
||||||
roles = [ "target" "info" "receive" "delete" ];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
extraPackages = [ pkgs.lz4 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
extra-trusted-public-keys = [
|
|
||||||
"hades-builder:AFdPgi6Qq/yKqc2V2imgzMikEkVEFCrDaHyAmOJ3MII="
|
|
||||||
"steamdeck.cachix.org-1:BVoP4TEu3ECgotaO+3J3r9SSn62GkUDBwizOFU/q4Bc="
|
|
||||||
];
|
|
||||||
extra-substituters = [
|
|
||||||
"https://steamdeck.cachix.org"
|
|
||||||
"https://cache.ci.kabtop.de"
|
|
||||||
];
|
|
||||||
#extra-trusted-substituters = [
|
|
||||||
# "https://cache.home.opel-online.de"
|
|
||||||
#];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -15,7 +15,6 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.alacritty;
|
package = pkgs.alacritty;
|
||||||
settings = {
|
settings = {
|
||||||
env.term = "screen-256color";
|
|
||||||
font = rec { # Font - Laptop has size manually changed at home.nix
|
font = rec { # Font - Laptop has size manually changed at home.nix
|
||||||
#normal.family = "FiraCode Nerd Font";
|
#normal.family = "FiraCode Nerd Font";
|
||||||
normal.family = "Cascadia Code";
|
normal.family = "Cascadia Code";
|
||||||
@ -23,6 +22,10 @@
|
|||||||
#bold = { style = "Bold"; };
|
#bold = { style = "Bold"; };
|
||||||
# size = 8;
|
# size = 8;
|
||||||
};
|
};
|
||||||
|
offset = { # Positioning
|
||||||
|
x = -1;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
[
|
[
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
# ./rofi.nix
|
./rofi.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
#./waybar.nix
|
#./waybar.nix
|
||||||
#./games.nix
|
#./games.nix
|
||||||
|
@ -1,91 +1,11 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services.hydra = {
|
||||||
hydra = {
|
enable = true;
|
||||||
enable = true;
|
hydraURL = "http://localhost:3000";
|
||||||
hydraURL = "https://hydra.home.opel-online.de";
|
notificationSender = "hydra@localhost";
|
||||||
listenHost = "127.0.0.1";
|
useSubstitutes = true;
|
||||||
notificationSender = "hydra@localhost";
|
|
||||||
useSubstitutes = true;
|
|
||||||
minimumDiskFree = 30;
|
|
||||||
};
|
|
||||||
nix-serve = {
|
|
||||||
enable = true;
|
|
||||||
port = 5001;
|
|
||||||
bindAddress = "127.0.0.1";
|
|
||||||
secretKeyFile = config.age.secrets."keys/nixsign".path;
|
|
||||||
};
|
|
||||||
nginx = {
|
|
||||||
enable = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
recommendedTlsSettings = true;
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedOptimisation = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"home.opel-online.de" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
default = true;
|
|
||||||
locations."/".return = "503";
|
|
||||||
};
|
|
||||||
"hydra.home.opel-online.de" = {
|
|
||||||
useACMEHost = "home.opel-online.de";
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:3000";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header X-Forwarded-Port 443;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"cache.home.opel-online.de" = {
|
|
||||||
useACMEHost = "home.opel-online.de";
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults = {
|
|
||||||
email = "webmaster@opel-online.de";
|
|
||||||
#server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
|
||||||
dnsResolver = "9.9.9.9:53";
|
|
||||||
};
|
|
||||||
certs = {
|
|
||||||
"home.opel-online.de" = {
|
|
||||||
domain = "*.home.opel-online.de";
|
|
||||||
dnsProvider = "netcup";
|
|
||||||
environmentFile = config.age.secrets."services/acme/opel-online".path;
|
|
||||||
webroot = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
trusted-users = [
|
|
||||||
"hydra"
|
|
||||||
];
|
|
||||||
allowed-uris = "http:// https://";
|
|
||||||
};
|
|
||||||
|
|
||||||
extraOptions = ''
|
|
||||||
secret-key-files = ${config.age.secrets."keys/nixsign".path}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."keys/nixsign" = {
|
|
||||||
file = ../../../secrets/keys/nixservepriv.age;
|
|
||||||
owner = "hydra";
|
|
||||||
};
|
|
||||||
age.secrets."services/acme/opel-online" = {
|
|
||||||
file = ../../../secrets/services/acme/opel-online.age;
|
|
||||||
owner = "acme";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# Services
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ home.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./services
|
|
||||||
# └─ default.nix *
|
|
||||||
# └─ ...
|
|
||||||
#
|
|
||||||
|
|
||||||
[
|
|
||||||
# ./microvm.nix
|
|
||||||
./hydra.nix
|
|
||||||
]
|
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
|
||||||
# redshift temporarely disables
|
|
@ -1,59 +0,0 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
virtualisation = {
|
|
||||||
podman ={
|
|
||||||
enable = true;
|
|
||||||
autoPrune.enable = true;
|
|
||||||
dockerCompat = true;
|
|
||||||
};
|
|
||||||
containers.containersConf.settings = {
|
|
||||||
# podman seems to not work with systemd-resolved
|
|
||||||
containers.dns_servers = [ "8.8.8.8" "8.8.4.4" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.gitea-actions-runner.instances = {
|
|
||||||
cirunner = {
|
|
||||||
enable = true;
|
|
||||||
url = "https://git.kabtop.de";
|
|
||||||
name = "CI Kabtop runner";
|
|
||||||
tokenFile = config.age.secrets."services/gitea/cirunner-token".path;
|
|
||||||
labels = [
|
|
||||||
"ci"
|
|
||||||
"debian-latest:docker://node:18-bullseye"
|
|
||||||
"ubuntu-latest:docker://node:16-bullseye"
|
|
||||||
"ubuntu-22.04:docker://node:16-bullseye"
|
|
||||||
"ubuntu-20.04:docker://node:16-bullseye"
|
|
||||||
"ubuntu-18.04:docker://node:16-buster"
|
|
||||||
"native:host"
|
|
||||||
];
|
|
||||||
hostPackages = with pkgs; [
|
|
||||||
bash
|
|
||||||
coreutils
|
|
||||||
curl
|
|
||||||
gawk
|
|
||||||
gitMinimal
|
|
||||||
gnused
|
|
||||||
nodejs
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
settings = {
|
|
||||||
# container.options = "-e NIX_BUILD_SHELL=/bin/bash -e PAGER=cat -e PATH=/bin -e SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt --device /dev/kvm -v /nix:/nix -v ${storeDeps}/bin:/bin -v ${storeDeps}/etc/ssl:/etc/ssl --user nixuser --device=/dev/kvm";
|
|
||||||
# the default network that also respects our dns server settings
|
|
||||||
container.network = "host";
|
|
||||||
container.privileged = false;
|
|
||||||
# container.valid_volumes = [
|
|
||||||
# "/nix"
|
|
||||||
# "${storeDeps}/bin"
|
|
||||||
# "${storeDeps}/etc/ssl"
|
|
||||||
# ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."services/gitea/cirunner-token" = {
|
|
||||||
file = ../../../secrets/services/gitea/cirunner-token.age;
|
|
||||||
owner = "gitea-runner";
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,82 +0,0 @@
|
|||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services = {
|
|
||||||
hydra = {
|
|
||||||
enable = true;
|
|
||||||
hydraURL = "https://hydra.ci.kabtop.de";
|
|
||||||
listenHost = "127.0.0.1";
|
|
||||||
notificationSender = "hydra@kabtop.de";
|
|
||||||
useSubstitutes = true;
|
|
||||||
minimumDiskFree = 8;
|
|
||||||
};
|
|
||||||
nix-serve = {
|
|
||||||
enable = true;
|
|
||||||
port = 5001;
|
|
||||||
bindAddress = "127.0.0.1";
|
|
||||||
secretKeyFile = config.age.secrets."keys/nixsign".path;
|
|
||||||
};
|
|
||||||
nginx = {
|
|
||||||
enable = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
recommendedTlsSettings = true;
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedOptimisation = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"ci.kabtop.de" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
default = true;
|
|
||||||
locations."/".return = "503";
|
|
||||||
};
|
|
||||||
"hydra.ci.kabtop.de" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://localhost:3000";
|
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header X-Forwarded-Port 443;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"cache.ci.kabtop.de" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults = {
|
|
||||||
email = "webmaster@kabtop.de";
|
|
||||||
webroot = "/var/lib/acme/acme-challenge";
|
|
||||||
#server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nix = {
|
|
||||||
settings = {
|
|
||||||
trusted-users = [
|
|
||||||
"hydra"
|
|
||||||
];
|
|
||||||
allowed-uris = [
|
|
||||||
"github:"
|
|
||||||
"https://github.com/"
|
|
||||||
"git+ssh://github.com/"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraOptions = ''
|
|
||||||
secret-key-files = ${config.age.secrets."keys/nixsign".path}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."keys/nixsign" = {
|
|
||||||
file = ../../../secrets/keys/nixservepriv.age;
|
|
||||||
owner = "hydra";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,129 +0,0 @@
|
|||||||
{ config, microvm, lib, pkgs, user, agenix, impermanence, ... }:
|
|
||||||
let
|
|
||||||
name = "gitea-runner";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
microvm = {
|
|
||||||
autostart = [
|
|
||||||
name
|
|
||||||
];
|
|
||||||
vms = {
|
|
||||||
${name} = {
|
|
||||||
|
|
||||||
inherit pkgs;
|
|
||||||
|
|
||||||
config = {
|
|
||||||
imports =
|
|
||||||
[ agenix.nixosModules.default ] ++
|
|
||||||
[ impermanence.nixosModules.impermanence ] ++
|
|
||||||
[( ./gitea_runner.nix )];
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "${name}";
|
|
||||||
|
|
||||||
firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ ];
|
|
||||||
allowedTCPPorts = [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
systemd.network = {
|
|
||||||
enable = true;
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = "*";
|
|
||||||
networkConfig = {
|
|
||||||
DHCP = "yes";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
users.users.${user} = { # System User
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [ "wheel" ];
|
|
||||||
uid = 2000;
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIANmaraVJ/o20c4dqVnGLp/wGck9QNHFPvO9jcEbKS29AAAABHNzaDo= kabbone@kabc"
|
|
||||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIIgo4IP8ISUohyAMiDc3zEe6ESUE3un7eN5FhVtxZHmcAAAABHNzaDo= kabbone@kabc"
|
|
||||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIKVDApb3vZ+i97V4xLJh8rUF6z5OVYfORlXYbLhdQO15AAAABHNzaDo= kabbone@hades.home.opel-online.de"
|
|
||||||
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIB0q++epdX7feQxvmC2m/CJEoJbkqtAJy6Ml6WKHxryZAAAABHNzaDo= kabbone@hades.home.opel-online.de"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services = {
|
|
||||||
openssh = {
|
|
||||||
enable = true;
|
|
||||||
settings.PasswordAuthentication = false;
|
|
||||||
hostKeys = [
|
|
||||||
{
|
|
||||||
path = "/persist/etc/ssh/ssh_host_ed25519_key";
|
|
||||||
type = "ed25519";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
path = "/persist/etc/ssh/ssh_host_rsa_key";
|
|
||||||
type = "rsa";
|
|
||||||
bits = 4096;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/persist".neededForBoot = lib.mkForce true;
|
|
||||||
|
|
||||||
environment = {
|
|
||||||
systemPackages = with pkgs; [ # Default packages install system-wide
|
|
||||||
bash
|
|
||||||
coreutils
|
|
||||||
curl
|
|
||||||
gawk
|
|
||||||
gitMinimal
|
|
||||||
gnused
|
|
||||||
nodejs
|
|
||||||
wget
|
|
||||||
];
|
|
||||||
persistence."/persist" = {
|
|
||||||
directories = [
|
|
||||||
"/var/log"
|
|
||||||
"/var/lib/private"
|
|
||||||
];
|
|
||||||
|
|
||||||
files = [
|
|
||||||
"/etc/machine-id"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
microvm = {
|
|
||||||
hypervisor = "qemu";
|
|
||||||
vcpu = 4;
|
|
||||||
mem = 3096;
|
|
||||||
balloonMem = 3096;
|
|
||||||
#kernel = pkgs.linuxKernel.packages.linux_latest;
|
|
||||||
interfaces = [
|
|
||||||
{
|
|
||||||
type = "user";
|
|
||||||
id = "vm-${name}";
|
|
||||||
mac = "04:00:00:00:00:02";
|
|
||||||
} ];
|
|
||||||
shares = [{
|
|
||||||
source = "/nix/store";
|
|
||||||
mountPoint = "/nix/.ro-store";
|
|
||||||
tag = "ro-store";
|
|
||||||
proto = "virtiofs";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
source = "/etc/vm-persist/${name}";
|
|
||||||
mountPoint = "/persist";
|
|
||||||
tag = "persist";
|
|
||||||
proto = "virtiofs";
|
|
||||||
}];
|
|
||||||
#writableStoreOverlay = "/nix/.rw-store";
|
|
||||||
#storeOnDisk = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@ -7,34 +7,31 @@
|
|||||||
{
|
{
|
||||||
services.kanshi = {
|
services.kanshi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = [
|
profiles = {
|
||||||
{
|
undocked = {
|
||||||
profile = {
|
|
||||||
name = "undocked";
|
|
||||||
outputs = [
|
outputs = [
|
||||||
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
#docked_c = {
|
||||||
{
|
# outputs = [
|
||||||
profile = {
|
# { criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "2560,0"; }
|
||||||
name = "docked_c";
|
# { criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "0,0"; }
|
||||||
|
# ];
|
||||||
|
#};
|
||||||
|
docked_c = {
|
||||||
outputs = [
|
outputs = [
|
||||||
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; scale = 1.5; }
|
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; scale = 1.5; }
|
||||||
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
docked_triple = {
|
||||||
{
|
|
||||||
profile = {
|
|
||||||
name = "docked_triple";
|
|
||||||
outputs = [
|
outputs = [
|
||||||
{ criteria = "eDP-1"; status = "disable"; mode = "1920x1080"; position = "4480,0"; }
|
{ criteria = "eDP-1"; status = "disable"; mode = "1920x1080"; position = "4480,0"; }
|
||||||
{ criteria = "HDMI-A-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
{ criteria = "HDMI-A-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
|
||||||
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
#
|
|
||||||
# Services
|
|
||||||
#
|
|
||||||
# flake.nix
|
|
||||||
# ├─ ./hosts
|
|
||||||
# │ └─ home.nix
|
|
||||||
# └─ ./modules
|
|
||||||
# └─ ./services
|
|
||||||
# └─ default.nix *
|
|
||||||
# └─ ...
|
|
||||||
#
|
|
||||||
|
|
||||||
[
|
|
||||||
# ./microvm.nix
|
|
||||||
# ./hydra.nix
|
|
||||||
]
|
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
|
||||||
# redshift temporarely disables
|
|
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
[
|
[
|
||||||
./nfs.nix
|
./nfs.nix
|
||||||
./nginx.nix
|
|
||||||
./vaultwarden.nix
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
# picom, polybar and sxhkd are pulled from desktop module
|
||||||
|
@ -1,53 +0,0 @@
|
|||||||
#
|
|
||||||
# System notifications
|
|
||||||
#
|
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.nginx = {
|
|
||||||
enable = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
recommendedTlsSettings = true;
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedOptimisation = true;
|
|
||||||
virtualHosts = {
|
|
||||||
"home.opel-online.de" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
default = true;
|
|
||||||
locations."/".return = "503";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
security.acme = {
|
|
||||||
acceptTerms = true;
|
|
||||||
defaults = {
|
|
||||||
email = "webmaster@opel-online.de";
|
|
||||||
# server = "https://acme-staging-v02.api.letsencrypt.org/directory";
|
|
||||||
dnsResolver = "9.9.9.9:53";
|
|
||||||
};
|
|
||||||
certs = {
|
|
||||||
"home.opel-online.de" = {
|
|
||||||
domain = "*.home.opel-online.de";
|
|
||||||
dnsProvider = "netcup";
|
|
||||||
environmentFile = config.age.secrets."services/acme/opel-online".path;
|
|
||||||
webroot = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
allowedUDPPorts = [ ];
|
|
||||||
allowedTCPPorts = [ 80 443 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."services/acme/opel-online" = {
|
|
||||||
file = ../../../secrets/services/acme/opel-online.age;
|
|
||||||
owner = "acme";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
#
|
|
||||||
# System notifications
|
|
||||||
#
|
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.vaultwarden = {
|
|
||||||
enable = true;
|
|
||||||
dbBackend = "sqlite";
|
|
||||||
backupDir = "/var/backup/vaultwarden";
|
|
||||||
environmentFile = config.age.secrets."services/vaultwarden/environment".path;
|
|
||||||
config = {
|
|
||||||
DOMAIN = "https://vault.home.opel-online.de";
|
|
||||||
SIGNUPS_ALLOWED = false;
|
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
|
||||||
ROCKET_PORT = 8222;
|
|
||||||
|
|
||||||
ROCKET_LOG = "critical";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts = {
|
|
||||||
"vault.home.opel-online.de" = {
|
|
||||||
useACMEHost = "home.opel-online.de";
|
|
||||||
forceSSL = true;
|
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets."services/vaultwarden/environment" = {
|
|
||||||
file = ../../../secrets/services/vaultwarden/environment.age;
|
|
||||||
owner = "vaultwarden";
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -17,7 +17,8 @@
|
|||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./matrix.nix
|
./matrix.nix
|
||||||
./coturn.nix
|
./coturn.nix
|
||||||
# ./ollama.nix
|
./jitsi.nix
|
||||||
|
./ollama.nix
|
||||||
]
|
]
|
||||||
|
|
||||||
# picom, polybar and sxhkd are pulled from desktop module
|
# picom, polybar and sxhkd are pulled from desktop module
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
DOMAIN = "git.kabtop.de";
|
DOMAIN = "git.kabtop.de";
|
||||||
SSH_PORT = 2220;
|
SSH_PORT = 2220;
|
||||||
ENABLE_GZIP = true;
|
ENABLE_GZIP = true;
|
||||||
LFS_START_SERVER = true;
|
|
||||||
LFS_ALLOW_PURE_SSH = true;
|
|
||||||
};
|
};
|
||||||
security = {
|
security = {
|
||||||
MIN_PASSWORD_LENGTH = 8;
|
MIN_PASSWORD_LENGTH = 8;
|
||||||
@ -42,7 +40,7 @@
|
|||||||
};
|
};
|
||||||
ui = {
|
ui = {
|
||||||
SHOW_USER_EMAIL = false;
|
SHOW_USER_EMAIL = false;
|
||||||
DEFAULT_THEME = "gitea-dark";
|
DEFAULT_THEME = "arc-green";
|
||||||
};
|
};
|
||||||
# openid = {
|
# openid = {
|
||||||
# ENABLE_OPENID_SIGNIN = true;
|
# ENABLE_OPENID_SIGNIN = true;
|
||||||
@ -66,9 +64,6 @@
|
|||||||
actions = {
|
actions = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
};
|
};
|
||||||
indexer = {
|
|
||||||
REPO_INDEXER_ENABLED = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -139,6 +139,7 @@ in {
|
|||||||
"/var/log/mautrix-signal"
|
"/var/log/mautrix-signal"
|
||||||
];
|
];
|
||||||
NoNewPrivileges=true;
|
NoNewPrivileges=true;
|
||||||
|
MemoryDenyWriteExecute=true;
|
||||||
PrivateDevices=true;
|
PrivateDevices=true;
|
||||||
PrivateTmp=true;
|
PrivateTmp=true;
|
||||||
ProtectHome=true;
|
ProtectHome=true;
|
||||||
|
@ -9,20 +9,15 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
hostName = "cloud.kabtop.de";
|
hostName = "cloud.kabtop.de";
|
||||||
https = true;
|
https = true;
|
||||||
package = pkgs.nextcloud30;
|
package = pkgs.nextcloud27;
|
||||||
database.createLocally = false;
|
database.createLocally = false;
|
||||||
notify_push.enable = false;
|
logType = "file";
|
||||||
maxUploadSize = "512M";
|
|
||||||
caching = {
|
caching = {
|
||||||
redis = true;
|
redis = true;
|
||||||
apcu = false;
|
apcu = false;
|
||||||
};
|
};
|
||||||
settings = {
|
extraOptions = {
|
||||||
log_type = "file";
|
|
||||||
logfile = "nextcloud.log";
|
logfile = "nextcloud.log";
|
||||||
overwriteprotocol = "https";
|
|
||||||
default_phone_region = "DE";
|
|
||||||
|
|
||||||
redis = {
|
redis = {
|
||||||
host = "/run/redis-nextcloud/redis.sock";
|
host = "/run/redis-nextcloud/redis.sock";
|
||||||
port = 0;
|
port = 0;
|
||||||
@ -30,7 +25,6 @@
|
|||||||
"memcache.local" = "\\OC\\Memcache\\Redis";
|
"memcache.local" = "\\OC\\Memcache\\Redis";
|
||||||
"memcache.distributed" = "\\OC\\Memcache\\Redis";
|
"memcache.distributed" = "\\OC\\Memcache\\Redis";
|
||||||
"memcache.locking" = "\\OC\\Memcache\\Redis";
|
"memcache.locking" = "\\OC\\Memcache\\Redis";
|
||||||
"maintenance_window_start" = "1";
|
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
@ -40,6 +34,8 @@
|
|||||||
adminuser = "kabbone";
|
adminuser = "kabbone";
|
||||||
adminpassFile = config.age.secrets."services/nextcloud/adminpassFile".path;
|
adminpassFile = config.age.secrets."services/nextcloud/adminpassFile".path;
|
||||||
dbpassFile = config.age.secrets."services/nextcloud/dbpassFile".path;
|
dbpassFile = config.age.secrets."services/nextcloud/dbpassFile".path;
|
||||||
|
overwriteProtocol = "https";
|
||||||
|
defaultPhoneRegion = "DE";
|
||||||
};
|
};
|
||||||
phpOptions = {
|
phpOptions = {
|
||||||
"opcache.interned_strings_buffer" = "16";
|
"opcache.interned_strings_buffer" = "16";
|
||||||
@ -47,15 +43,15 @@
|
|||||||
#autoUpdateApps.enable = true;
|
#autoUpdateApps.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.onlyoffice = {
|
services.onlyoffice = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# hostname = "docs.cloud.kabtop.de";
|
hostname = "docs.cloud.kabtop.de";
|
||||||
# postgresName = "onlyoffice";
|
postgresName = "onlyoffice";
|
||||||
# postgresHost = "localhost";
|
postgresHost = "localhost";
|
||||||
# postgresUser = "onlyoffice";
|
postgresUser = "onlyoffice";
|
||||||
# postgresPasswordFile = config.age.secrets."services/nextcloud/onlyofficedb".path;
|
postgresPasswordFile = config.age.secrets."services/nextcloud/onlyofficedb".path;
|
||||||
# jwtSecretFile = config.age.secrets."services/nextcloud/onlyofficejwt".path;
|
jwtSecretFile = config.age.secrets."services/nextcloud/onlyofficejwt".path;
|
||||||
# };
|
};
|
||||||
|
|
||||||
services.redis = {
|
services.redis = {
|
||||||
vmOverCommit = true;
|
vmOverCommit = true;
|
||||||
@ -73,10 +69,9 @@
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
# "${config.services.onlyoffice.hostname}" = {
|
"${config.services.onlyoffice.hostname}".listen = [ {
|
||||||
# enableACME = true;
|
addr = "127.0.0.1"; port = 8080;
|
||||||
# forceSSL = true;
|
} ];
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -88,14 +83,14 @@
|
|||||||
file = ../../../secrets/services/nextcloud/adminpassFile.age;
|
file = ../../../secrets/services/nextcloud/adminpassFile.age;
|
||||||
owner = "nextcloud";
|
owner = "nextcloud";
|
||||||
};
|
};
|
||||||
# age.secrets."services/nextcloud/onlyofficedb" = {
|
age.secrets."services/nextcloud/onlyofficedb" = {
|
||||||
# file = ../../../secrets/services/nextcloud/onlyofficedb.age;
|
file = ../../../secrets/services/nextcloud/onlyofficedb.age;
|
||||||
# owner = "onlyoffice";
|
owner = "onlyoffice";
|
||||||
# };
|
};
|
||||||
# age.secrets."services/nextcloud/onlyofficejwt" = {
|
age.secrets."services/nextcloud/onlyofficejwt" = {
|
||||||
# file = ../../../secrets/services/nextcloud/onlyofficejwt.age;
|
file = ../../../secrets/services/nextcloud/onlyofficejwt.age;
|
||||||
# owner = "onlyoffice";
|
owner = "onlyoffice";
|
||||||
# };
|
};
|
||||||
|
|
||||||
systemd.services."nextcloud-setup" = {
|
systemd.services."nextcloud-setup" = {
|
||||||
requires = ["postgresql.service"];
|
requires = ["postgresql.service"];
|
||||||
|
@ -5,10 +5,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./postgresql_upgrade.nix ];
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.postgresql_16;
|
package = pkgs.postgresql_15;
|
||||||
settings = {
|
settings = {
|
||||||
max_connections = 200;
|
max_connections = 200;
|
||||||
listen_addresses = "localhost";
|
listen_addresses = "localhost";
|
||||||
@ -21,15 +20,15 @@
|
|||||||
timezone = "Europe/Berlin";
|
timezone = "Europe/Berlin";
|
||||||
};
|
};
|
||||||
authentication = pkgs.lib.mkOverride 14 ''
|
authentication = pkgs.lib.mkOverride 14 ''
|
||||||
local all postgres peer
|
local all postgres peer
|
||||||
host giteadb gitea localhost scram-sha-256
|
host giteadb gitea localhost scram-sha-256
|
||||||
host nextclouddb nextcloud localhost scram-sha-256
|
host nextclouddb nextcloud localhost scram-sha-256
|
||||||
host synapsedb synapse localhost scram-sha-256
|
host synapsedb synapse localhost scram-sha-256
|
||||||
host whatsappdb mautrixwa localhost scram-sha-256
|
host whatsappdb mautrixwa localhost scram-sha-256
|
||||||
host telegramdb mautrixtele localhost scram-sha-256
|
host telegramdb mautrixtele localhost scram-sha-256
|
||||||
host signaldb mautrixsignal localhost scram-sha-256
|
host signaldb mautrixsignal localhost scram-sha-256
|
||||||
host onlyoffice onlyoffice localhost scram-sha-256
|
host onlyoffice onlyoffice localhost scram-sha-256
|
||||||
local onlyoffice onlyoffice peer
|
local onlyoffice onlyoffice peer
|
||||||
'';
|
'';
|
||||||
initialScript = config.age.secrets."services/postgresql/initScript.sql".path;
|
initialScript = config.age.secrets."services/postgresql/initScript.sql".path;
|
||||||
};
|
};
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [
|
|
||||||
(let
|
|
||||||
# XXX specify the postgresql package you'd like to upgrade to.
|
|
||||||
# Do not forget to list the extensions you need.
|
|
||||||
newPostgres = pkgs.postgresql_16.withPackages (pp: [
|
|
||||||
# pp.plv8
|
|
||||||
]);
|
|
||||||
cfg = config.services.postgresql;
|
|
||||||
in pkgs.writeScriptBin "upgrade-pg-cluster" ''
|
|
||||||
set -eux
|
|
||||||
# XXX it's perhaps advisable to stop all services that depend on postgresql
|
|
||||||
systemctl stop postgresql
|
|
||||||
|
|
||||||
export NEWDATA="/var/lib/postgresql/${newPostgres.psqlSchema}"
|
|
||||||
|
|
||||||
export NEWBIN="${newPostgres}/bin"
|
|
||||||
|
|
||||||
export OLDDATA="${cfg.dataDir}"
|
|
||||||
export OLDBIN="${cfg.package}/bin"
|
|
||||||
|
|
||||||
install -d -m 0700 -o postgres -g postgres "$NEWDATA"
|
|
||||||
cd "$NEWDATA"
|
|
||||||
sudo -u postgres $NEWBIN/initdb -D "$NEWDATA" ${lib.escapeShellArgs cfg.initdbArgs}
|
|
||||||
|
|
||||||
sudo -u postgres $NEWBIN/pg_upgrade \
|
|
||||||
--old-datadir "$OLDDATA" --new-datadir "$NEWDATA" \
|
|
||||||
--old-bindir $OLDBIN --new-bindir $NEWBIN \
|
|
||||||
"$@"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
@ -16,9 +16,7 @@
|
|||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
gpg = { format = "ssh"; };
|
gpg = { format = "ssh"; };
|
||||||
credential = { helper = "cache --timeout=3600"; };
|
|
||||||
};
|
};
|
||||||
difftastic.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -19,22 +19,22 @@
|
|||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
yank
|
yank
|
||||||
sidebar
|
sidebar
|
||||||
# {
|
{
|
||||||
# plugin = dracula;
|
# plugin = dracula;
|
||||||
# extraConfig = "
|
# extraConfig = "
|
||||||
# set -g @dracula-show-powerline true
|
# set -g @dracula-show-powerline true
|
||||||
# set -g @dracula-plugins 'git cpu-usage ram-usage battery time'
|
# set -g @dracula-plugins 'git cpu-usage ram-usage battery time'
|
||||||
# set -g @dracula-border-contrast true
|
# set -g @dracula-border-contrast true
|
||||||
# ";
|
# ";
|
||||||
# plugin = catppuccin;
|
plugin = catppuccin;
|
||||||
# extraConfig = "
|
extraConfig = "
|
||||||
# set -g @catppuccin_flavour 'macchiato'
|
set -g @catppuccin_flavour 'macchiato'
|
||||||
# set -g @catppuccin_window_tabs_enabled 'on'
|
set -g @catppuccin_window_tabs_enabled 'on'
|
||||||
# set -g @catppuccin_host 'on'
|
set -g @catppuccin_host 'on'
|
||||||
# set -g @catppuccin_user 'on'
|
set -g @catppuccin_user 'on'
|
||||||
# set -g @catppuccin_date_time '%Y-%m-%d %H:%M'
|
set -g @catppuccin_date_time '%Y-%m-%d %H:%M'
|
||||||
# ";
|
";
|
||||||
# }
|
}
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = ".config/zsh_nix";
|
dotDir = ".config/zsh_nix";
|
||||||
autosuggestion.enable = true; # Auto suggest options and highlights syntact, searches in history for options
|
enableAutosuggestions = true; # Auto suggest options and highlights syntact, searches in history for options
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
history.size = 10000;
|
history.size = 10000;
|
||||||
|
|
||||||
@ -27,6 +27,10 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
initExtra = '' # Zsh theme
|
initExtra = '' # Zsh theme
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
||||||
|
unset SSH_AGENT_PID
|
||||||
|
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
|
||||||
# Spaceship
|
# Spaceship
|
||||||
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
|
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
@ -36,7 +40,6 @@
|
|||||||
# Swag
|
# Swag
|
||||||
pfetch # Show fetch logo on terminal start
|
pfetch # Show fetch logo on terminal start
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
eval "$(ssh-agent)"
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
7
modules/themes/.gitattributes
vendored
7
modules/themes/.gitattributes
vendored
@ -1,7 +0,0 @@
|
|||||||
nixos-wallpaper-catppuccin-mocha.svg filter=lfs diff=lfs merge=lfs -text
|
|
||||||
nix-wallpaper-nineish-solarized-dark.src.svg filter=lfs diff=lfs merge=lfs -text
|
|
||||||
nix-wallpaper-nineish-solarized-dark.png filter=lfs diff=lfs merge=lfs -text
|
|
||||||
nix-wallpaper-binary-black.png filter=lfs diff=lfs merge=lfs -text
|
|
||||||
lockwall.jpg filter=lfs diff=lfs merge=lfs -text
|
|
||||||
nuka_col.jpg filter=lfs diff=lfs merge=lfs -text
|
|
||||||
wall.jpg filter=lfs diff=lfs merge=lfs -text
|
|
Binary file not shown.
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 285 KiB |
BIN
modules/themes/nix-wallpaper-binary-black.png
(Stored with Git LFS)
BIN
modules/themes/nix-wallpaper-binary-black.png
(Stored with Git LFS)
Binary file not shown.
BIN
modules/themes/nix-wallpaper-nineish-solarized-dark.png
(Stored with Git LFS)
BIN
modules/themes/nix-wallpaper-nineish-solarized-dark.png
(Stored with Git LFS)
Binary file not shown.
BIN
modules/themes/nix-wallpaper-nineish-solarized-dark.src.svg
(Stored with Git LFS)
BIN
modules/themes/nix-wallpaper-nineish-solarized-dark.src.svg
(Stored with Git LFS)
Binary file not shown.
BIN
modules/themes/nixos-wallpaper-catppuccin-mocha.svg
(Stored with Git LFS)
BIN
modules/themes/nixos-wallpaper-catppuccin-mocha.svg
(Stored with Git LFS)
Binary file not shown.
BIN
modules/themes/nuka_col.jpg
(Stored with Git LFS)
BIN
modules/themes/nuka_col.jpg
(Stored with Git LFS)
Binary file not shown.
@ -1 +0,0 @@
|
|||||||
nixos-wallpaper-catppuccin-mocha.svg
|
|
Before Width: | Height: | Size: 36 B After Width: | Height: | Size: 242 KiB |
BIN
modules/themes/wall.jpg
Normal file
BIN
modules/themes/wall.jpg
Normal file
Binary file not shown.
Before Width: | Height: | Size: 36 B After Width: | Height: | Size: 242 KiB |
@ -19,6 +19,7 @@
|
|||||||
gnome.gnome-terminal
|
gnome.gnome-terminal
|
||||||
gnomeExtensions.dash-to-dock
|
gnomeExtensions.dash-to-dock
|
||||||
gnomeExtensions.appindicator
|
gnomeExtensions.appindicator
|
||||||
|
flatpak
|
||||||
rocmPackages.clr.icd
|
rocmPackages.clr.icd
|
||||||
rocmPackages.clr
|
rocmPackages.clr
|
||||||
clinfo
|
clinfo
|
||||||
@ -42,7 +43,7 @@
|
|||||||
autoLogin.user = "kabbone";
|
autoLogin.user = "kabbone";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -15,26 +15,19 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# rocmPackages.clr.icd
|
flatpak
|
||||||
# rocmPackages.clr
|
rocmPackages.clr.icd
|
||||||
# clinfo
|
rocmPackages.clr
|
||||||
kdePackages.discover
|
clinfo
|
||||||
|
libsForQt5.discover
|
||||||
maliit-keyboard
|
maliit-keyboard
|
||||||
maliit-framework
|
|
||||||
kdePackages.ksshaskpass
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
|
||||||
ssh.enableAskPassword = true;
|
|
||||||
ssh.askPassword = lib.mkDefault "${pkgs.kdePackages.ksshaskpass}/bin/ksshaskpass";
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
packagekit.enable = true;
|
packagekit.enable = true;
|
||||||
desktopManager.plasma6.enable = true;
|
xserver = {
|
||||||
# xserver = {
|
enable = true;
|
||||||
# enable = true;
|
desktopManager.plasma5.enable = true;
|
||||||
# desktopManager.plasma5.enable = true;
|
|
||||||
# displayManager = {
|
# displayManager = {
|
||||||
# gdm.wayland = true;
|
# gdm.wayland = true;
|
||||||
# gdm.enable = true;
|
# gdm.enable = true;
|
||||||
@ -48,10 +41,8 @@
|
|||||||
# autoLogin.enable = true;
|
# autoLogin.enable = true;
|
||||||
# autoLogin.user = "kabbone";
|
# autoLogin.user = "kabbone";
|
||||||
# };
|
# };
|
||||||
# };
|
};
|
||||||
#flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
udev.packages = with pkgs; [ gnome-settings-daemon ];
|
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
|
||||||
};
|
};
|
||||||
|
|
||||||
qt.platformTheme = "kde";
|
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,4 @@
|
|||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
user = "kabbone";
|
user = "kabbone";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
desktopSession = "plasma";
|
desktopSession = "plasmawayland";
|
||||||
};
|
};
|
||||||
devices.steamdeck = {
|
devices.steamdeck = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -30,9 +30,10 @@
|
|||||||
decky-loader.enable = true;
|
decky-loader.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
steam
|
steam
|
||||||
jq
|
jq
|
||||||
appimage-run
|
appimage-run
|
||||||
zenity
|
gnome.zenity
|
||||||
unzip
|
unzip
|
||||||
fuse
|
fuse
|
||||||
];
|
];
|
||||||
|
@ -16,6 +16,12 @@
|
|||||||
{
|
{
|
||||||
imports = [ ../waybar.nix ];
|
imports = [ ../waybar.nix ];
|
||||||
|
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
loginShellInit = ''
|
loginShellInit = ''
|
||||||
if [ -z $DISPLAY ] && [ $UID != 0 ] && [ "$(tty)" = "/dev/tty1" ]; then
|
if [ -z $DISPLAY ] && [ $UID != 0 ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
@ -35,8 +41,6 @@
|
|||||||
rocmPackages.clr
|
rocmPackages.clr
|
||||||
clinfo
|
clinfo
|
||||||
waybar
|
waybar
|
||||||
rot8
|
|
||||||
glib
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -47,7 +51,7 @@
|
|||||||
export MOZ_WEBRENDER="1";
|
export MOZ_WEBRENDER="1";
|
||||||
export MOZ_USE_XINPUT2="2";
|
export MOZ_USE_XINPUT2="2";
|
||||||
export MOZ_DBUS_REMOTE="1";
|
export MOZ_DBUS_REMOTE="1";
|
||||||
export WLR_RENDERER="vulkan";
|
#export GDK_BACKEND="wayland";
|
||||||
export LIBVA_DRIVER_NAME="iHD";
|
export LIBVA_DRIVER_NAME="iHD";
|
||||||
export VDPAU_DRIVER="iHD";
|
export VDPAU_DRIVER="iHD";
|
||||||
export XDG_SESSION_TYPE="wayland";
|
export XDG_SESSION_TYPE="wayland";
|
||||||
|
@ -18,9 +18,8 @@
|
|||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
checkConfig = false;
|
|
||||||
config = rec {
|
config = rec {
|
||||||
menu = "${pkgs.rofi}/bin/rofi -show combi -show-icons";
|
menu = "${pkgs.bemenu}/bin/bemenu-run -m -1 --hf '#ffff00' --tf '#888888' --nf '#00ff40' --hb '#424242' | xargs ${pkgs.sway}/bin/swaymsg exec --";
|
||||||
left = "m";
|
left = "m";
|
||||||
down = "n";
|
down = "n";
|
||||||
up = "e";
|
up = "e";
|
||||||
@ -31,9 +30,8 @@
|
|||||||
|
|
||||||
input = {
|
input = {
|
||||||
"type:keyboard" = {
|
"type:keyboard" = {
|
||||||
xkb_layout = "us,de";
|
xkb_layout = "us";
|
||||||
xkb_variant = "altgr-intl,";
|
xkb_variant = "altgr-intl";
|
||||||
xkb_options = "grp:win_space_toggle";
|
|
||||||
};
|
};
|
||||||
"type:touchpad" = {
|
"type:touchpad" = {
|
||||||
tap = "enabled";
|
tap = "enabled";
|
||||||
@ -57,12 +55,11 @@
|
|||||||
#};
|
#};
|
||||||
"DP-2" = {
|
"DP-2" = {
|
||||||
mode = "2560x1440";
|
mode = "2560x1440";
|
||||||
pos = "0,250";
|
pos = "0,0";
|
||||||
};
|
};
|
||||||
"DP-3" = {
|
"DP-3" = {
|
||||||
mode = "1920x1200";
|
mode = "1920x1200";
|
||||||
pos = "2560,0";
|
pos = "2560,120";
|
||||||
transform = "90";
|
|
||||||
};
|
};
|
||||||
#"eDP-1" = {
|
#"eDP-1" = {
|
||||||
# mode = "1920x1080";
|
# mode = "1920x1080";
|
||||||
@ -89,11 +86,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
startup = [
|
startup = [
|
||||||
{ command = "exec ${pkgs.rot8}/bin/rot8 -Y -k"; }
|
#{ command = "$HOME/.config/sway/scripts/2in1screen"; }
|
||||||
{ command = "xrdb -load ~/.Xresources"; }
|
{ command = "xrdb -load ~/.Xresources"; }
|
||||||
# { command = "gsettings set org.gnome.desktop.interface gtk-theme Dracula"; }
|
{ command = "gsettings set org.gnome.desktop.interface gtk-theme Arc"; }
|
||||||
# { command = "gsettings set org.gnome.desktop.interface icon-theme Dracula"; }
|
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
|
||||||
# { command = "gsettings set org.gnome.desktop.interface cursor-theme Adwaita"; }
|
{ command = "gsettings set org.gnome.desktop.interface cursor-theme Adwaita"; }
|
||||||
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
|
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
|
||||||
{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
|
{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
|
||||||
{ command = "${pkgs.firefox}/bin/firefox"; }
|
{ command = "${pkgs.firefox}/bin/firefox"; }
|
||||||
@ -120,7 +117,7 @@
|
|||||||
{ command = "floating enable"; criteria = { app_id = "com.nitrokey."; }; }
|
{ command = "floating enable"; criteria = { app_id = "com.nitrokey."; }; }
|
||||||
{ command = "floating enable"; criteria = { app_id = "org.keepassxc.KeePassXC."; }; }
|
{ command = "floating enable"; criteria = { app_id = "org.keepassxc.KeePassXC."; }; }
|
||||||
{ command = "floating enable"; criteria = { app_id = "virt-manager"; }; }
|
{ command = "floating enable"; criteria = { app_id = "virt-manager"; }; }
|
||||||
{ command = "floating enable"; criteria = { title = "^OpenSSH Authentication"; }; }
|
{ command = "floating enable"; criteria = { class = "lxqt-openssh-askpass"; }; }
|
||||||
{ command = "floating enable"; criteria = { class = "pop-up"; }; }
|
{ command = "floating enable"; criteria = { class = "pop-up"; }; }
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -157,28 +154,27 @@
|
|||||||
"${alt}+Shift+${right}" = "move container to workspace next, workspace next";
|
"${alt}+Shift+${right}" = "move container to workspace next, workspace next";
|
||||||
|
|
||||||
"XF86TouchpadToggle" = "input type:touchpad events toggle enabled disabled";
|
"XF86TouchpadToggle" = "input type:touchpad events toggle enabled disabled";
|
||||||
|
"XF86AudioRaiseVolume" = "exec pulsemixer --change-volume +5 && ${config.cmds.notifications.volume}";
|
||||||
|
"XF86AudioLowerVolume" = "exec pulsemixer --change-volume -5 && ${config.cmds.notifications.volume}";
|
||||||
|
"XF86AudioMute" = "exec pulsemixer --toggle-mute && ${config.cmds.notifications.volume}";
|
||||||
|
#"XF86AudioRaiseVolume" = "exec pulsemixer --change-volume +5";
|
||||||
|
#"XF86AudioLowerVolume" = "exec pulsemixer --change-volume -5";
|
||||||
|
#"XF86AudioMute" = "exec pulsemixer --toggle-mute";
|
||||||
|
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||||
|
"XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5% && ${config.cmds.notifications.brightness}";
|
||||||
|
"XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5% && ${config.cmds.notifications.brightness}";
|
||||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||||
"XF86AudioNext" = "exec playerctl next";
|
"XF86AudioNext" = "exec playerctl next";
|
||||||
"XF86AudioPrev" = "exec playerctl previous";
|
"XF86AudioPrev" = "exec playerctl previous";
|
||||||
"XF86AudioStop" = "exec playerctl stop";
|
"XF86AudioStop" = "exec playerctl stop";
|
||||||
|
|
||||||
# Sink volume raise optionally with --device
|
#XF86AudioMute = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
"XF86AudioRaiseVolume" = "exec swayosd-client --output-volume raise";
|
#XF86AudioRaiseVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"XF86AudioLowerVolume" = "exec swayosd-client --output-volume lower";
|
#XF86AudioLowerVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
# Sink volume toggle mute
|
#XF86AudioPlay = "exec ~/.config/waybar/scripts/toggle-play";
|
||||||
"XF86AudioMute" = "exec swayosd-client --output-volume mute-toggle";
|
#XF86AudioNext = "exec playerctl --player=spotify next";
|
||||||
# Source volume toggle mute
|
#XF86AudioPrev = "exec playerctl --player=spotify previous";
|
||||||
"XF86AudioMicMute" = "exec swayosd-client --input-volume mute-toggle";
|
|
||||||
|
|
||||||
# Capslock (If you don't want to use the backend)
|
|
||||||
#bindsym --release Caps_Lock exec swayosd-client --caps-lock;
|
|
||||||
|
|
||||||
# Brightness raise
|
|
||||||
"XF86MonBrightnessUp" = "exec swayosd-client --brightness raise";
|
|
||||||
# Brightness lower
|
|
||||||
"XF86MonBrightnessDown" = "exec swayosd-client --brightness lower";
|
|
||||||
|
|
||||||
|
|
||||||
"${mod}+${left}" = "focus left";
|
"${mod}+${left}" = "focus left";
|
||||||
"${mod}+${down}" = "focus down";
|
"${mod}+${down}" = "focus down";
|
||||||
"${mod}+${up}" = "focus up";
|
"${mod}+${up}" = "focus up";
|
||||||
@ -242,13 +238,12 @@
|
|||||||
export MOZ_WEBRENDER="1";
|
export MOZ_WEBRENDER="1";
|
||||||
export MOZ_USE_XINPUT2="2";
|
export MOZ_USE_XINPUT2="2";
|
||||||
export MOZ_DBUS_REMOTE="1";
|
export MOZ_DBUS_REMOTE="1";
|
||||||
export WLR_RENDERER="vulkan";
|
#export GDK_BACKEND="wayland";
|
||||||
export LIBVA_DRIVER_NAME="iHD";
|
export LIBVA_DRIVER_NAME="iHD";
|
||||||
export VDPAU_DRIVER="iHD";
|
export VDPAU_DRIVER="iHD";
|
||||||
export XDG_SESSION_TYPE="wayland";
|
export XDG_SESSION_TYPE="wayland";
|
||||||
export XDG_CURRENT_DESKTOP="sway";
|
export XDG_CURRENT_DESKTOP="sway";
|
||||||
#export QT_QPA_PLATFORMTHEME="wayland-egl";
|
export QT_QPA_PLATFORMTHEME="wayland-egl";
|
||||||
export QT_QPA_PLATFORMTHEME="qt6ct";
|
|
||||||
export GST_VAAPI_ALL_DRIVERS="1";
|
export GST_VAAPI_ALL_DRIVERS="1";
|
||||||
export GTK_THEME="Arc";
|
export GTK_THEME="Arc";
|
||||||
export _JAVA_AWT_WM_NONREPARENTING="1";
|
export _JAVA_AWT_WM_NONREPARENTING="1";
|
||||||
@ -266,8 +261,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.swaylock = {
|
||||||
swaylock = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
color = "000000";
|
color = "000000";
|
||||||
@ -275,59 +269,19 @@
|
|||||||
indicator-caps-lock = true;
|
indicator-caps-lock = true;
|
||||||
show-keyboard-layout = true;
|
show-keyboard-layout = true;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
rofi = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.rofi-wayland;
|
|
||||||
extraConfig = {
|
|
||||||
modi = "window,drun,ssh";
|
|
||||||
kb-primary-paste = "Control+V,Shift+Insert";
|
|
||||||
kb-secondary-paste = "Control+v,Insert";
|
|
||||||
};
|
|
||||||
font = "Cascadia Code";
|
|
||||||
location = "top-left";
|
|
||||||
plugins = [
|
|
||||||
pkgs.rofi-calc
|
|
||||||
pkgs.rofi-bluetooth
|
|
||||||
pkgs.pinentry-rofi
|
|
||||||
];
|
|
||||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
|
||||||
theme = "arthur";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.swayidle = {
|
||||||
swayidle = {
|
enable = true;
|
||||||
enable = true;
|
events = [
|
||||||
events = [
|
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
||||||
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }
|
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
||||||
{ event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
{ event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
{ event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
{ event = "unlock"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
{ event = "unlock"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
];
|
||||||
];
|
timeouts = [
|
||||||
timeouts = [
|
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
||||||
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -fF"; }
|
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
||||||
{ timeout = 600; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
|
];
|
||||||
];
|
|
||||||
};
|
|
||||||
swayosd.enable = true;
|
|
||||||
};
|
};
|
||||||
# qt = {
|
|
||||||
# enable = true;
|
|
||||||
# style.package = [
|
|
||||||
# pkgs.dracula-theme
|
|
||||||
# pkgs.dracula-icon-theme
|
|
||||||
# pkgs.catppuccin-kvantum
|
|
||||||
# pkgs.catppuccin-kde
|
|
||||||
# pkgs.catppuccin-gtk
|
|
||||||
# pkgs.qt6Packages.qtstyleplugin-kvantum
|
|
||||||
# ];
|
|
||||||
# style.name = "kvantum";
|
|
||||||
# platformTheme.name = "qtct";
|
|
||||||
# };
|
|
||||||
# xdg.configFile = {
|
|
||||||
# "Kvantum/Catppuccin".source = "${pkgs.catppuccin-kvantum}/share/Kvantum/Catppuccin-Frappe-Blue";
|
|
||||||
# "Kvantum/kvantum.kvconfig".text = "[General]\ntheme=Catppuccin-Frappe-Blue";
|
|
||||||
# };
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-vkeyboard, #custom-appkill, #custom-rotate {
|
#custom-vkeyboard, #custom-appkill {
|
||||||
padding: 0px 50px;
|
padding: 0px 50px;
|
||||||
margin: 0px 0px;
|
margin: 0px 0px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@ -135,17 +135,13 @@
|
|||||||
color: red;
|
color: red;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
#custom-rotate {
|
|
||||||
color: white;
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
settings = [{
|
settings = [{
|
||||||
layer = "bottom";
|
layer = "bottom";
|
||||||
position = "top";
|
position = "top";
|
||||||
height = 22;
|
height = 22;
|
||||||
tray = { spacing = 10; };
|
tray = { spacing = 10; };
|
||||||
modules-center = [ "custom/rotate" "clock" "custom/appkill" ];
|
modules-center = [ "clock" "custom/appkill" ];
|
||||||
modules-left = [ "sway/mode" "sway/workspaces" "sway/window" ];
|
modules-left = [ "sway/mode" "sway/workspaces" "sway/window" ];
|
||||||
#modules-left = [ "wlr/workspaces" ];
|
#modules-left = [ "wlr/workspaces" ];
|
||||||
modules-right = [ "idle_inhibitor" "pulseaudio" "network" "cpu" "memory" "backlight" "temperature" "battery" "tray" ];
|
modules-right = [ "idle_inhibitor" "pulseaudio" "network" "cpu" "memory" "backlight" "temperature" "battery" "tray" ];
|
||||||
@ -273,12 +269,6 @@
|
|||||||
on-click = "${pkgs.sway}/bin/swaymsg kill";
|
on-click = "${pkgs.sway}/bin/swaymsg kill";
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
"custom/rotate" = {
|
|
||||||
format = "♽ ";
|
|
||||||
icon-size = 20;
|
|
||||||
on-click = "${pkgs.sway}/bin/swaymsg output eDP-1 transform 180 clockwise";
|
|
||||||
tooltip = false;
|
|
||||||
};
|
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -20,8 +20,7 @@ let
|
|||||||
|
|
||||||
server = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwN8p78OncPIRUfV64PLHOem4LtlQ3opOJwLEYqdGVx";
|
server = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwN8p78OncPIRUfV64PLHOem4LtlQ3opOJwLEYqdGVx";
|
||||||
server2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPm3epi3v+yuskxQZgmPdkVDET8IGeYA6LbTCqPWqkz+";
|
server2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPm3epi3v+yuskxQZgmPdkVDET8IGeYA6LbTCqPWqkz+";
|
||||||
kabtopci = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGdvPKu0XJXpxiZYxwHdt0UzzSXxQqZIbHzVvjySR82w";
|
dmz = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAmivVLbkJJ1anwQ8CeNT7rv0Qxinp1LIQIjVWZpnIE5";
|
||||||
dmz = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAq5OMVTx1IkzFvDgDRwiv+ruYTCBlJ+D1hx+BS8Roah";
|
|
||||||
hades = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgnWyQUUa+vcHAKx6edbTgqW8ph+MCiS6fUwYjYcS+o";
|
hades = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgnWyQUUa+vcHAKx6edbTgqW8ph+MCiS6fUwYjYcS+o";
|
||||||
nasbak = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdoxslkKn3ouadPOHmDN7e5AtoJmnllnUmhl1j9qfzz";
|
nasbak = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdoxslkKn3ouadPOHmDN7e5AtoJmnllnUmhl1j9qfzz";
|
||||||
jupiter = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBQr9/TIeAd25h0gfOPjoHs6JMeye4V04LuFufbe1S/";
|
jupiter = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDBQr9/TIeAd25h0gfOPjoHs6JMeye4V04LuFufbe1S/";
|
||||||
@ -59,12 +58,6 @@ let
|
|||||||
];
|
];
|
||||||
buildServer = [
|
buildServer = [
|
||||||
hades
|
hades
|
||||||
kabtopci
|
|
||||||
dmz
|
|
||||||
];
|
|
||||||
homeServices = [
|
|
||||||
jupiter
|
|
||||||
dmz
|
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -85,8 +78,6 @@ in
|
|||||||
"services/gitea/mailerPassword.age".publicKeys = servers ++ users;
|
"services/gitea/mailerPassword.age".publicKeys = servers ++ users;
|
||||||
"services/gitea/homerunner-token.age".publicKeys = homerunners ++ users;
|
"services/gitea/homerunner-token.age".publicKeys = homerunners ++ users;
|
||||||
"services/gitea/serverrunner-token.age".publicKeys = serverrunners ++ users;
|
"services/gitea/serverrunner-token.age".publicKeys = serverrunners ++ users;
|
||||||
"services/vaultwarden/environment.age".publicKeys = homeServices ++ users;
|
|
||||||
"services/acme/opel-online.age".publicKeys = homeServices ++ users;
|
|
||||||
"keys/nixremote.age".publicKeys = buildClients ++ users;
|
"keys/nixremote.age".publicKeys = buildClients ++ users;
|
||||||
"keys/nixservepriv.age".publicKeys = buildServer ++ users;
|
"keys/nixservepriv.age".publicKeys = buildServer ++ users;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -1,23 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 neExcQ yMHHDZg+ZqoX3BGPI9Ruqbj051Ewsyxc207Ne0EJ6k0
|
-> ssh-ed25519 neExcQ FMwvw6TmjR3KbTH9UgtlHGmC3ZM9s1+g2Lb2B4oSJWI
|
||||||
LD+wq4I8s/Fc6znNE6WRMba0u1BU5Mi6VKcyBk6xTZo
|
l9TBPRZpSM1Wky9J+uNaKSYVI65MlLxTU7Kh2uC9Ijs
|
||||||
-> ssh-ed25519 WiIaQQ KmHrRHx9vaSMaHUWcMZKRApR9KWntU07umf1mZekRQk
|
-> ssh-ed25519 WiIaQQ J3tqbCwliMu7Hp/diV45LB0z2EWpLAwivGxxNQm1O28
|
||||||
/wumFHGj1am02zQ4g4EaEEk2sCoWTkjSARTIUnPnFD8
|
O7EDQl7x7htiIyVOQfSWHQbIxVWEnDJ/rOwE7Jey6go
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
GBUmtcnkZ4tlQbsWArXcBEX+p7RAwFUeZ7QOteJ61/lDaKYOcYZPC298AI4eE5cE
|
BE/OvVUprp821b/gLSDol0R0P65wwtYHKulHt2Y1Ik02w/A/GCJbVX1hAbxkhRnR
|
||||||
jejlIO1Jh72eQCQ+ZniAdPO8caUWOXyAfXsk8Et8RCaodK0pt14JB/Ez+qHpZR2j
|
5em/iKrbG5J3kabFgV/2VLB21yzcrdip0Cvzbgn0HsZ7I0PS80W+Nz054cdH6QV/
|
||||||
V9LC3xrlvWbyY21pnokQudSsu966Kmh27gAd1vyw+rAFpYSLhY6cL3oyiYNtZ0Nf
|
A+iveZxwS0x5VWI1//mmPp6YGeEOw89r/KyIZ7As8gTmVzQoVEeaqUsP9A2/+VuG
|
||||||
AgsGrCIJhWOKA7+PJPSxbPPosqB9nteRRxl7Hi3XIhu7oE0YCqVVihA908vdaq7G
|
J6gbE6vCb5jxJ7OrLZbtBjfJhac3g7KHfy9QcLNRDSR+r0YVYOElUSyYdz3DUbJp
|
||||||
pOIubfd6S7Aptj7xiXb/8oojhsglgISPyFHIPOZaIVXVtNqFxXhjFiJjdZuZ4gRS
|
vCkNdm2s00wzAobyK5KLx4k9UB+1kJRPjP52Uxt4A+pEjIviH1vTnHzQb+vL4LuR
|
||||||
hmaxAXd8UblKzYWIKDUnAwdn5tdixC+GrqdNit2s946Di7s5oe7BptP707XQK0WA
|
qR6spF4vXHj14eGva51+8bxuUBj3kx9zS4XFTLug9B9xe8XgiPJDq109/fzCLkyr
|
||||||
HXJuc/h3+8JAkQsPW0B9+XbeNtRAh9Uqcq3tadGqjwfgLKepebOoG3K0F3+simcr
|
CZwmvAIUbghLzVw5ub4It+79GKxYXH9GjkWmVQX1J1a6ls7Fvy8pW90Fh2N5M+wk
|
||||||
bS3fgd1R92v8KyyXpKvgbilJQ2GBoxEqHTeMzqksp/6t/3s64tLEnrRhqcxyYz7P
|
FTQru+OuwfllWUZaUWpE1mUzu65CZ84Kfg5slm3oY/y8E6UEmHiwdpCD1Y7mxGwl
|
||||||
fDs0IgezPFQ6ZKU2KMnheRiQrRD//9JINPnj+0PPL5PggyaDh4PwA67INrHwANl6
|
hlQAhOzXyiNDHtWdvRaA66if7+heTvkEoKD5/owUJ0tJTMyvZgah0r2OGbKWluTv
|
||||||
Rgh8QNBvom3E8gdYuBuCM75PewMZF9mSksLDYrYz9M9LB4YIvBxHKiW6PhugtTwM
|
+w6DMlKQFtnnW437t3QZFEWmz6r8UV53CzVIjcOv6Nd8za20RKofmOCeyVJ5GRNk
|
||||||
fd3uSuaTfTEFgPtEuJUsQk3Q8+lZQpY4BtEDP27NqFI
|
weL94rH3Mv5YKh3/mJGj4fsYgka3uRO+rV6G7fNZcfQ
|
||||||
-> piv-p256 grR75w A2dfNFLZpwdWZ4PkmeHpUdalrhHYehriPn23TC8V3mSW
|
-> piv-p256 grR75w AnCspIRjswTZ8aEXA15AQiJDKmUiHQhvKg4Rhfre3kCu
|
||||||
N8IfOhaZdWspJ2GCJ8de0Yhe3Jv1BBA8Ep+Tpp/IFyk
|
Prp1jHRXIdTXapLZgjWwjy091uc37kCIvGstSOxmNbI
|
||||||
-> piv-p256 RQguQQ As/Vu7wq9Y3gW8gJfxyi2b31e3A2ZswBPZ3KfShjDR5T
|
-> piv-p256 RQguQQ AxfKlFTYgyFzB7sxct0s3/QcoVs1AFwSysZTTBhJjwZz
|
||||||
sE4kxCyTMm2fEvs/I3KpDt61S2vFv89/MgALO3RVsuQ
|
GYuHnz8yk5TsY/y2oibHnkFh+Ah956ZiSKXzbT5Fu+A
|
||||||
--- GnBuK/AhHklZlnoQXH6HGNZa/rqLWAOKpvbFK3IQnmU
|
--- ++NTK2N0Od5wJsDHGXUg5AbVPNRl2siwehTeRHNMkec
|
||||||
Ümp9/ýÜŽ™µ·XŠ“'HnÉd´Òvdý ÅA[W8A‹;ê2¦uªqQT`,%]ï~íu<C3AD>¼.5<EFBFBD>Ía= އFÛÐnrc3ÿ&ô³!h·$ÔýJ2,iß'5îIJ™
|
T„ÇrIŤŘ“b4 €tş!5d©C‘«/w[mA/ýŐÇ\] ŁN‹!„~ĺ˛†Ž˘Ż‚ŔrĆÖiéßm`ůŇYéÚ
ť’ۦ«Đo‹îHňnZâ'(Ľś–KJ<4B>~0šôG9ľ
|
Binary file not shown.
@ -1,21 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 1fxDZw hh8ehz1Ku8o+RLbbQU0S9wpdanqZTujlpv56EZkFMyY
|
-> ssh-ed25519 1fxDZw HPqtOnCf0xv43GQmB6iSSLGK6r/5pCFFZJC37ioMIw0
|
||||||
380XaylUBWlLEFh1DIi5C1wefShsQu7DjLQmsobh7eQ
|
VjvteDjUqqkBas9FzZKxlA1y5/TwIB44I7yNH3KBDYA
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
bXqph/p3KcAE6lwE2VHUO2evE1K8gpLUyQdvOCKJGcmxkwlSemgP1bAtpKIBrAh+
|
Xx8tuS0ClpvIEn/diIhCInLuiNym22i0SQZCkFCz5V0FKNM0L9hzlqU2A2wLemgz
|
||||||
9BAIoQf+vt/Pdu11cB3y+egICZDxAj/LG7uzjTSETniItCgKTqTbFOV2yXezLvD1
|
iy1So0jNJWGt9ylUCyPI9ucyLUgoXFXiQjaMkI85yj+xuUDHkmereRMW3AQD+2LL
|
||||||
NyroReGDFD6wofXUt2+1Y4yoMeW85DC6PDDd9Que2QJHPVfVaR1EtyWXEmkS/W+2
|
+NHsmQQchtmQg/gCZY0MS7gq++ULDwlakAkwMP0U6T19i299eBSBL4Zoj00rKNlx
|
||||||
yhGxnfIXBSrO465zdlTOBJS0uA6LPi2smEsetHfu/5FrV7AAlb0iIP6ZUcZGpaG3
|
KLe0jbNlIe1uhVLYRfyz3S0I9z8gWDSQ8soFoqrJwKVHsO7wmH/3a0dCEWSHRRVm
|
||||||
n9y1t696zCNGPMGOYeDwlyHefaBkweUM+r2lYoyTsk+PqY5+g9Ap3ZkMqVxyV479
|
MRfU/Oy7A8U+iD37z9DxSN2O6hKRLMDu/NyTXUV95ImYwOcA7ya4nShwpB7vZLop
|
||||||
IExBTTdCNJouiByR1/o/0L6I8hAdEDyGad9H+PmH8gwtCKRmz4B+on5ljQ9/gwHz
|
Vu/BtX5HZ7JvBK3kApyR+Da5LYsBhqrDmqXqtykjn8TM0WG65jLKp5XolEcGEfUe
|
||||||
4dU7+zFYU0N8TSzImWmsU+Pomd8aItJlWIE38OZ+yq3/wYWuDVmfrlNklu5N3cb0
|
KrqVMhVm+d2AijpRvsbOv13B7UmZkxBP9+6/o7uujv9nV5uSoGwv9tZn9ubeZyXo
|
||||||
GSQPk97tkpxC7oAt2n7TlwYtrlElvKFTNFt2FHQQzLRK9v2cH5aJAASaLk//MXo3
|
U7q3MaURqbgv6YV+h/aJ1X0URmPMyjUgkCLI3HbKJV+ZQH1jbNsn0aiVU0d0MXBb
|
||||||
pqmRx2KFDO0f4UMyLWh3dpvu942PLaZN14/fX0u24KmCGUjTa/0KGUeroEF9QXN/
|
cE1NIZdfrQ/+Mp14KuiKoY/ycrJPQkg+Au8LANSk/pzH/lvGO1EP50eBRz4hIqEg
|
||||||
xyWuMddf/Fk0ENIDRI/ScU2b2kB2anmYJ8u0jFjMkubZTNs7BJpQGoRnNeRHYVEp
|
RaNII+fQosyr10HPvlgMfEZQnDoG6H+Tvhgt4S6Ex9lyjKASnx/SQyRwhd9SPgDb
|
||||||
nK/0GwemAe2b9j3WcNEA3w+qliFSxAIVQK/DlmImHPk
|
bArbSq4lJ59rqw7TX2IrkjDgvv/FMqdcxjW+kIOTWDQ
|
||||||
-> piv-p256 grR75w A8m/M9FxN5IPc3jZz9HZEMdN+lqQWKk7wECowIBIJypr
|
-> piv-p256 grR75w A1d8pk5Qfx1xq9vApCkKKj6gx1elqSYxLezwoChk3k7Z
|
||||||
VS76coMWzq3V5fVK7Mi9EJM/aREGkuT5BOc2KRrt+XM
|
AeYO+rslswXdRJK/pwe9m3CNHIKsrRkt1lamyysDNQk
|
||||||
-> piv-p256 RQguQQ AyqzzNEcRsKvojUVTIHSdXd2suP5clAVJN3rZQ5uO8Zh
|
-> piv-p256 RQguQQ AukcSmMTNQQZdr5zDOjMTnsOFZp5H5D5ohuVdIQUpUYM
|
||||||
n7sGAAhLHjeMA95/NRaaE90SLKn3jMduKwL+DnG1Su4
|
aJqrWcaXdpfS2vakEu5vi/AMHnoUUrUpm0bRRcCxiE8
|
||||||
--- Hy7Q73oX1zTn/cO5LDZ4L88cqYN9pm25UtPWgE8Oc5k
|
--- fNTWHdKIXpbJsZo2WnMAPXTNMtr0hKkgivCIi1qiQps
|
||||||
~<7E>Ís<> <11>Oòݤ¼¸€ü°‘æ¼ÌÊÿ†.r§yy-ü¶_®Ì$ù‘ ÿ¹3d*ÐËÐóÒKv²Â`YŸKËÚœVá“^©æ²º-
|
XƒŽR0jÙebMB7v6“‚Ȧ~
몀“8<=
|
||||||
|
2iŸ¾Š2ìJð]L×íp
|
||||||
|
}aÉ+»1ÿTy™
]»T<C2BB>þgÌè¡Çó3¢‹¢¼³"«iÊ
|
@ -1,23 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 neExcQ 23q0cea4QGcuckAJyGJ0s3DJ7Lp6vakxFYdXszDEShs
|
-> ssh-ed25519 neExcQ Qx3NuIC3HnyhLAPB6NGLlO8073iIEXQ3VpVDvsPsLVk
|
||||||
0GCmRPOWvOnDdY1yyoGy/dvZDgloBz1ILqww5/Riaqk
|
9Cz7AXaP/EorKrdLxMfaWJJsCIv5u6upJIaNbLiDleA
|
||||||
-> ssh-ed25519 WiIaQQ yVMIknaxSccjm0+OhvBZU4VPR5pAWN8l6WFWt1KlSXQ
|
-> ssh-ed25519 WiIaQQ AS+i8m6vO83lj5vZ1lr+FiM1SO1v7BU6OWertpdTXSU
|
||||||
G7ZaB4v/x3lB90eG/qlzIasgTdxOl9LNEAfKfkyp3/w
|
LIitIW7F/8idoKvgHmirFp1V9RlObyqOueDVIdBdRM0
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
Gz/gQCuoTNR92KpaW+5maMWbA/Fu/vVLVrLvVfHB/Q+qE7yxCNoIUVf+Nwkqll0N
|
FdINMHPfPVgkQk0A5g6uDRQmZxI0h74QkJSdYUtHRfbqBP0R3f4TrqbtO4n6E7pR
|
||||||
SIKoDkq5OamxoezagvO9EVA0jyPpAdTP1oljiLjsX54OXLhT1Z25N+hC7lEe9MFj
|
5NYLkqyZND7ApC10hoQ2UJF22Ja06ZvWhhM7Zsl0X3u/58NhgXsXWy92I2sniBa4
|
||||||
QrPLXa3WoPJTPzoho2F+/bjGtUui4Dx/rFp950oUQXXYdAQBHn4HlLPTSkT/Gllb
|
DF6T3AD4bQOF4Px2A/+lnA++NIWHdroqghojWOAZazvLFaFa6HtIdrTiMb2bojuU
|
||||||
e+nOtElJs9xK9y5lN9LuDXMKO2SBDHsqDzlrua7FCZZxV6BuyXqQtcJV7NAEWzST
|
qxepekbRwJBEm9/5bKHZlEmwx3rJsYxrNKEkxPrBvNdPbnwgxrvhOXxeQJghyGGw
|
||||||
fnTBx8g9mbRclcD5KhoPjmS80dNuYYGUa5aWLFkK3ZreMpETWKTaUr5Jmh9HhPod
|
vnCRHKDbqvRIWfkmftRjNQMHUSMitDJHUOPsG9z5KBr4M7n7B1bV5ozsLsVyUUmE
|
||||||
ShXGCDuf2VlJw3ZerY2Afot3hrZG4+ZnY4gMqRrLaQt8IzmiMmeXtrj4xoI1wRDR
|
6vBvrOPz9+RiE9H61PlAvPFMmKBTQgRf8+mjbU0RGxScqLcUoHCud2x3O+WqlLoP
|
||||||
sVCXMloWuHRqsDXX20kP70xJYTpdD7At1TeZBw2TAVfisr3SsuqBm59yx+fS71Uh
|
TMQtye8ayRPgG3PbwP4pO3olcA9ANEdd2Jfo+HG4izbJxdCTbOMfEFTJIEfyGMIo
|
||||||
xPOwuFvZ5BRaE6hb7oo0zUJjNFCqrPkRoS7SijkhHp/9MYnUyQA7d4E+kYtYqfqp
|
lo0Hh0EIijFAVfyAH6G/Rv1KggpINr8fTxbWz8i1PXTqzBsjfrqbHWWRrE/VJSYI
|
||||||
JSLWTrmbiXp29F56N7emB3ppwKMpTqS6/1BLy2GeztNnEQuJyu6aK0Lviw6q7Cp6
|
x9bjSHeWCOs+IlZ2YEB8dshJe5smrTnKpFYrj3kvLHOiC1jKUJdDZooQex4nkXpW
|
||||||
8vPSvtWT+itrQ1SS9IR1IHnoNHTEyYzLzxuqpYVIeOLDfcTasnzae7Q99xVDsaAB
|
mMKIOb/VF6/QM3NkmJKLdnMJenIKL1Vqbrv/Lqu1/FaINqRsIGTXCsQs+JjxrcfX
|
||||||
A3G4O2xDkhQwqynXRWeWnVJYKqckJucV3aL7LisgSEU
|
zxpzs7Bk2eV/BaiJxJ7Cjfx1gO37GpL0kzCMuN1xnWs
|
||||||
-> piv-p256 grR75w AxDL4kLN0PD2FiB89JD9F0CLHFhV9QzpdOIxnKE0/Esa
|
-> piv-p256 grR75w Azu36XfRZ2Evj79zCs8RA5lwbMe2Je0oBI5JM+3MC/cO
|
||||||
mNQN7lyWhcod+UjaBQqw4n7CcNcNjpO0whbEERIrebQ
|
p8nO/p2M3pvEevZLLItNDSz64Ju8yBA2GPBnTWMN25I
|
||||||
-> piv-p256 RQguQQ AzxUAebSDk66RwVBAMThJT8pBu3TpS5AaoGew3GbtfD9
|
-> piv-p256 RQguQQ Av9ILPK7bsPNqgudLMq88MNSWrB+xrBVfxX3bjVCquvj
|
||||||
WEgpjyadiul2G0dTusUsINNqZTAxYm3NCPZeOpBaw1A
|
0iwRR9htchLUk88RRooXsP0H39FfybCPMQC8AMxgu/0
|
||||||
--- p9jCZfnH8gEsLrgJnZnIcijG1YHBTQArzWCDE7JfYTc
|
--- puq9s7iYi1A0v+7Qhsqo05Yfxtg5kHJK66RM1TDLtNM
|
||||||
4ÁÝʼ›ñJì'?Åvnî ¹½¾“ú¢ŒBêÓ'xã !e(÷±©†üØ›©I•Áߢo°šÑôû2H6ºú
|
‡![˘Ąëu_Ď(*0źĹ´8«°ęŠű"úÄFsnď"TęĽ-„<>˝ş˙žÇwťw'Îü˘4ľ„«sd_!
|
@ -1,21 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 0qfOZA iyct51e862F5HcUHrV6HJfocfqWvyu5dcCG9vchvlzk
|
-> ssh-ed25519 0qfOZA UTOzjwhqcVLmpf3P/nzO3aGKzKH0YKq04sUbFvMa/FE
|
||||||
1GbQPF2QRdXA1/XlsovvS6RDvXGeUykYuBf1o9md9NU
|
a2MMcZXucDEXmy/uU7JapMsboImCGsUiPA2Pr/wB5yQ
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
V2ezCm2vmn6TYu25I4FDrXtQoMQSWobixzKO1z2HgD/fU5tk6XOwD5Ha/Q1MqTZf
|
Nr2g/ocV0oTbZydmcRnESyI4VOJdMGafozm80EMarbQfmeeRCfi76jxct/gpnL00
|
||||||
JgNrMCChh6xWrcd/dDBjuCRNQlcvWH7DFqu1AH2dg6AvRnEBFJKg5agFjYnQQz4d
|
P/2d/3pfvqbpuGZRg+Q/BCY0Vm2AujJ1P2UTxpnzC42iZu7qKWd5EY4z0Hok53kg
|
||||||
cLGXAMSRRIIZg55yeMwawm6co7f3/8nw6DEWOtaB+WnXek44cdHGXIDn7jVY10IJ
|
McPh+pgNhugLr4Yh2KHpT27FfJpD/Pmjajg7G78Q9P5uel6SKXIW4uFO4Lp2yLC/
|
||||||
4PwykvCIhZsmBW/f38OH6qvdAdAXJMJqDTyAzSjXH+fVFy8pYuFpALJzOXnk6OFB
|
vC52XMqxLrR9moCTr72dQPzd0IIhQ2vN9EtZkBnxUW6zt3ILAYJ06VLAGvVwXIWl
|
||||||
EMwFnFgt+Du4VybJEsxg93xFNh6CGga/7scjfdulWmakHSKh/LYVowsjPKlV7LIO
|
0Wjs3G5g5v+H2e+Em5vIy1hdub/3orEL4racHO0m0binK/IVRJY7sjZDVDrrerFS
|
||||||
L+06RHFiBCsi6dxRMUEztwzXWhvHNL1DUix5BJv1v+vCS4DGAiQ+nqntg6sBZgyD
|
SqPORQ3a7jmuHFeHxwAlRcmh/O1gEgAnCZTZRfQzgXI+nfPEzuL0yENd/ksUPBdm
|
||||||
A1yR2JblEWND/TeGC7fFI+lPH27608QgNeOqQrHKm5Sk9j4b4ClNhxEQRTquMxM5
|
q2zQSv1rrj/tLMtxk4vpG8FkPp5UctaYignvHAp95xC+TR14aDUdT4x4MGboHIxu
|
||||||
PAgNpdwyXP2mKi/XeN2v4GnJ9OBUEj3yzZ1YNwOCajI1t9IPChPc2eR9O8AjUT5v
|
l6Q3evVJzblwIl3JbzpP3yOA2k25Y1KI+nVDrTqAdi+Yy4jtIOA+XancIHrpLzAO
|
||||||
C1isvdmcqegtqP7P0SM7xqx/gxUA7QQx7kRr+QALbECbsSzrSycXowp9OvsewQ/3
|
21JO1wwGtAsjUDCdhnYSyMcOiRLRHzPoK7o/BGx6b1Uqk2WmWhZnZft9MHPp2RtX
|
||||||
6ZfSAsXTu+voXEv5E59NpUUhIIcEq6BByBbcdBKt0G1FLmIaL8PG2Lwk3/EAaUY6
|
Gv3PBMVjz2CO+f3d8B4akPSApgQ9fw1Vje5fY0CDWdORV7tHDCKb6fmTua2d73Iz
|
||||||
Wx4ieA0ZXK5btRAr947ZM71o5Zag3OBnZ1MKxDCAq2c
|
ANrKYonqWhjf3F9u7zzM8/xd593AH/Y+aJo+z0S+Z6I
|
||||||
-> piv-p256 grR75w A9ZmUbec4JRZGWMjnqBTQGCf6GimNyNDmllWB4uBHJFq
|
-> piv-p256 grR75w Ap4du3RBcNdRvbwjQTpP5PPXtNCRuoQePt6ULYEpNM1r
|
||||||
mN/spixDcTc6UZSLe4vc879uOUxOw9Qh9VDRK2YrTGM
|
4Qe4c6j7df/TajuxM5Q1qnC/TCBNNI5K9WCDqD4VM1M
|
||||||
-> piv-p256 RQguQQ Ap+H8uhWf+iaeyTIBziLgulUiF0wYOPFizC17xhzWtxj
|
-> piv-p256 RQguQQ AoR+aGTAQ6VELef54cGpukkWjeKz37tDbW93ncGWFsrI
|
||||||
lbgpzytkMbtmlRT67GhwBBMzbTCD8M/1vuobnUhUNlM
|
KbF1N14PYEQ28a/MePeq7hW9LAgUaNriFo6UO0eBvt4
|
||||||
--- NQ1zWWCImu0ugkcWJW645DMva4rngFMNDagT74Yku6Q
|
--- F8GiyUf87+vhg22ldWuC2j5K8WGAK3y5lRDG6yrzBPQ
|
||||||
ÜU•U?É×Q}<7D>Þe.+õ³Þ„3kÏa?9ù<39>\¡;C¬é_öÌ)•önáœ38>ôóC®{tv»1ÆåÓˆàLUq#b+c}
|
að$ß-“¼|‚h.cr38ÓÉÁéPwú3üÝNhà„†B¬j !z^<5E>² bÄ8cªâ½m‘sç¤
|
||||||
|
–\Ü3û»ÐÕfòx3|ùNeÍ
|
||||||
|
=:³
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,23 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 neExcQ slNwdPIgpsABv0SgU39pUoudBMs7UAsCbdE3aDxCNh0
|
-> ssh-ed25519 neExcQ 8cKmhu5xTxTuvVbBhVZM2W2qzRQRVX9BSojcK6YgCys
|
||||||
/HXJ6yQkBPp6bFY8B72f9gpQpele3wFmwZsMaFBE8uk
|
kwfUlvEPLVbaq/rjQAu4s2NhGbxFfdEeLyU1eUH2gF0
|
||||||
-> ssh-ed25519 WiIaQQ OUv7lcCQDvJo7fpchdQRwIbXQ4nG16gWgJWMSdSMMxM
|
-> ssh-ed25519 WiIaQQ TvRNnifxg4OPDvwvuUIdJgwrpj8KegqfjVEB/in9UEw
|
||||||
rD2lYHGo4CQjJOqpD/n9pgPjsbIvGRNFiuWO0QFtyOE
|
U0iqVaHbZS/SvCH4UAzjJQ9nPiHv779v6s5PwjTxf5k
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
QgN54J0Py+EdO2LAup0PI3f1lDsuJHrxMCLt5+dfnCjSmPrWtGxOGf9Nw6SQWg0p
|
QZHM+/KssZmfX436QJGBGbhlx36oxCg4jgdbRwa/acI2s6ppawdnFzyWZBhv/Xzk
|
||||||
3TQ5Rew0jhedXJ/h/c0c95h9OYsnEjYqz14CRYAohngaSbFWiaLFrklg7hGcvTvb
|
wYcT9c2ciuy/aEx6uX7fSAiKQbfq0d9KEp+d2xwlpL02656hJ3Jya3U4RApvEFeC
|
||||||
9+MB0c+HtHoNtYVKYdgmzPXMPYBx/99Lc8Q24xvfSlGlGhl72S2CTu8us0daAZ1z
|
lNjyWgLKuyxYeC20f3/NMg2AnickMicbw4WCzG+HWnVCnxDe2JW+ZbXPsoBg9IbW
|
||||||
TnMLXZ9TKw/QtSS3+Wa5j6jrLyPD0M0biCBdRPR+4ho/t0AR/qQfXmCGZOf0kfe/
|
BO05nRKB0jonuA5NDvHZ+a/1xf/4qarj9vmwnsoK7jU6TGK2r+iPHuppC/LTgofm
|
||||||
XtBRs/QQT+HAHOUo9wPR332yuUxu03jHpPrlhuP88ydcAjUccYvEndAnRyOv9sea
|
2kXKDP/gpRpIblHr2QukoGeWmXPGeF5PXXCPC5eor1jAhwrBTBY1hL29mhb6mK5M
|
||||||
RuM8e0GDYRwpRNjPbAorG6PG+oJx7/t6z1OkVxRpRJQHTWJ6ntnMAd6ZhGNgRp8F
|
qvX5wvayHgIHvX73fn2oexepc3QXjazCKSdVSykj/s0N0//0fbtYJe8qIbgfeNen
|
||||||
xIiXzPwGTEnyiRFOSTzxwX8XP25c9ft2Bpx2uYxUgS7af51NWZIorqJmWgQN49oJ
|
Lvn9DgsDvQfC83Iikh3r3V4RtmHiD12gA3qxc3tZSQLftbedTbylGnMmCZr2c9w0
|
||||||
5DA8uBan3qQkr0jJzFwVKYYt4roIYEtrnH/snl5uNbpIhPfTy5/rg+Xrf0aRunpP
|
4396ZfUfjXk2Px/XCiy6WBghW62QQ4Q6fGYWBViL1OWCoudNNRCfD72E3jdfj2l2
|
||||||
U9bpuJtBVgIAUXk5zLxhnMh43o2YYxCHN0cArU1wNLHcdaKogPGpT1sLCckwZ/3L
|
cScM+huEDU58dxpHM/6yLT+97Tta7JDpgz2ueMUfKFCUnopKNKBPoaZfFzvi+nCw
|
||||||
O/hxutVOmkJyNOAp9k0jV6zedWjhru/4v4Imov6BxDyLf3Hz2vnvwogYVgyl3TIr
|
vRHVdt5CpN4oJc+mokWCGNt4fK5nyvyO6nDe9cHel91sfS2nCiukf8IKmEDlZQGd
|
||||||
Ir98D/CIp3i74VsUvVrZmo7joZcDhnAXlLPsb51I6qM
|
jEMLZjAkuEHwa8Powxi14egunANQPgLSM5EuStDmhlU
|
||||||
-> piv-p256 grR75w Ax4mmj6z8SvPKdHRz7H8O/he2R4f4tql+NXSMTvr9rZ4
|
-> piv-p256 grR75w A2nunTE+4FmZOKWQhinSlizVprH0lX81NKsVEDijzDQK
|
||||||
EPyI4xcY1Nt/zZ/+XXVhUAt+aq3qEEk+kuuA1PbOPI4
|
8+Rdpp1JCxbbxeTVl0WGpQHDlqb5e22zLbBkwBPDYkc
|
||||||
-> piv-p256 RQguQQ A6ST+jiJS1R0QV1lw+IlMYnxXnTOLxyDfxpQZ/AWCKHB
|
-> piv-p256 RQguQQ Ar8nU9oNd+TEfTsdIM4ka/J4IArbeQKfn2W93TYOkajJ
|
||||||
henkAsW+enG7nY5Y7egcw6RezC0gdakjZGwH+KP6idA
|
5YnDAocS0lDBrO/M6sNWyn/Vxa1qLiudf2Via9UOUW4
|
||||||
--- Dlhmc48gY+BCXUhKQDRnlprdONlHDQ4tZf8BmZPsFKo
|
--- yDdPOHLA10Rxzl+kEyCUx/lmLZaVWucWY1Sj9rdo4hU
|
||||||
Ë ¼ú~ã]Äè›zø‡O†ßífg*ëûB«v²€+iL¢!Ô†
|
Bÿ—ós”dGÈÿ´m`ÄÎ),NU@þˆ³a˜Pv(½®rMôû
|
@ -1,23 +1,23 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-ed25519 neExcQ x2yzu3clDgMKxl/uIVR9SYHPEcxJxQIEr12irpOQEjE
|
-> ssh-ed25519 neExcQ VfWt68buOl2UetDKcQWuWRSOeJi4HhQxiZVI4lIfcUU
|
||||||
pnIlEK0y+8WuBrMv89pHk79ogHUaeEf/hamaF6U4SNw
|
GTWI83cLyP2Kjd6twRpaWpBq+U/BYcfDJeljQ1CZ1bw
|
||||||
-> ssh-ed25519 WiIaQQ KMjVolPcPvqAF2Thgjw9taDsEoBjHjR7+VnfoGkczV0
|
-> ssh-ed25519 WiIaQQ nqwbWtevakrHk3sODtw7l40klSb4cIyi4uSsnpcS8QI
|
||||||
++VgMR0dZKqyyFv72qVa8j3zq6KPWWOFqdyJpmZZNCU
|
PxfriZ8CdPhPTNtjQL3lsyjfjkpBsnmJc0TRNM1pyHM
|
||||||
-> ssh-rsa VtjGpQ
|
-> ssh-rsa VtjGpQ
|
||||||
DXcSjBKsmYiWrC1JVaisJRe1lafR/rBcTT0EgD73SXouBqRk11XNiW8DfR1pvy9z
|
QRSdhHdAcGlw2c1hxGNmtAp5tPcjQ7CI+v9JkOyOH9W9KF3uOfshrpkz/psFPd+s
|
||||||
ZL4veUFu4QJjVyPZLOGy5naPD1Qw9FYCArkjmv336QU6DcpZk8LaOAZkmgpqncdX
|
6eqQDAwEAgla4pO6FHj/H2PK9KDHY3j2e8BZyvJ8ZsefUsSAYJ92hcD3fdISL+kc
|
||||||
g9nDp2HeZH7TUtUiYD14x66AQD12bTTjfWKzn7yGzJ+gx+iBTemlPI3pu+xcQ4CX
|
+FMx4Dlm9LSeGGqElbPotyU69t2O/WLF01HqLDVgHrlyTzWvQMhvATA5Yzcj1Izb
|
||||||
clTB6xvlPtuF+U9kJwomei9XIWgc/acAcIoYOvvdyjAcUYFuFvuojdzo0hwkxFGu
|
0AlA7IOE174E448/Ovo5a2T+DF0w2vLEPruH90Kvs2lui+i8yC3StgBwB6flmSfc
|
||||||
jlp0FFaigsffVTsO0mp20uiOseMHm1ZGIji2gGOGQBOESKgMn5E9cLibEjigg4hy
|
dSR5qO0XCZ8gK/kkdsz2iZonsBCbEugQayN+EoE8vop6YlPW36EtO8IJnVnKmVEX
|
||||||
hJ6qn9DjNyi45QjGqkOKWJ+nzvKrzz++3sWwJJXuj+Ol+0n0t+RgT/LuSHkyskQT
|
vy/Rj3dubm5Wsp2hAyeXSXx3ity5fdSJ3TVY7TiPLPlt1yik3Wggtv0DlgZK0AML
|
||||||
B27GG07oCLk9iUVja2YQRmC46yts5lHkcZ193N1Ot9kGoK7VNQE29X80KSF2VSbW
|
x1OJbrZRrzDZKYzxXw69+lOiV5XfVUfk9PXC+IAj3xf/dEz93b6Pief+PbOQg+tz
|
||||||
+uE/47HwNGTBWb7LdZWRPoOykQu2V1vhcVNO/st+s67VyWZk9vugLSN9l3mldp5X
|
INDWkL67/Yx6rEf41iLCsQananBV16IeM2SndRyrmT/1OCcLUR/8xqBHfOg/K0kp
|
||||||
gvUAv0TZdhi9kwdSiz82l77VASBN3a/VN6XGOMqanaKaRsy2R9WGXxF50gUHn4/K
|
lHL7D7/neqRh2E8KOEciHgWFqWT/tV5XpyZVvA8OiYLoVbmLG55q4pexrDfQ9OgT
|
||||||
iRMj+22fJPfWpYBPUIohb2yDHQGRhVoY22Rlz1JYP+xfsORCq3GSHBk56fUCfmwi
|
ZDIL94VjiBDH5BmPfxLhRZP/58EhLSDH3WziIWnv6Y2Y1bAl5qiRU4tEV0RCHqyJ
|
||||||
H8ptQZHmgSC3dY/KigjH7VHcfrlDWctXrfl4jYgz/hQ
|
xEeLcqI5uFwDmmt881zlyAb38oQCGq/YRXhGygwwn18
|
||||||
-> piv-p256 grR75w A6yTo6/3g7YB9D30JSCfzpIcloxhgnIFisWFexpfITfN
|
-> piv-p256 grR75w Ayt9mI1/BJg96jlkLVjf7xhDoklNuoFe3ZeKLYzFqDPO
|
||||||
0nN62XqpQEsMhNnDhYNkXwTanQaaUvSAJZbvTRXxXvo
|
S3vFS+S4ZVC2O00P5u5GKaLtbabBPUCuuFNFFxcmmUw
|
||||||
-> piv-p256 RQguQQ AttfR8uPYcFBqCkF2cvi1YCMMmAbRF6oMSLr5NL5UlbN
|
-> piv-p256 RQguQQ AqsDGN35gXkyWaKSRVATyt1Ap5gzLKiAx+UHwhVXdhhG
|
||||||
fcU5SJ7lwd9jAOwM5M5mC8/F1PW3yuRJMpNFyGQZhLU
|
YUqypxYBQ2RYbnMclNa8PSLV6atbVRCho4wHUCZegkU
|
||||||
--- wuqc2TNmM8N9Ibp4rR6tFKdT2G7E58cBJZ0RCf6nxEM
|
--- Bay62OwVx/Q8Nf5MHRu7VOWzwh1LtkWbxQytL16Y5Zg
|
||||||
ŸÔEîöK8Œ±|gƒKjYn‰Ø^™ßü)ý8£ïQÐÊ™§Jlín 7í…,OÿX
|
Én(/GZvÞÑ ç!料™¡<E284A2>fs×à–#…¯Âv5”K_àètûk‰ë³s7PÈÚèßÂÉk
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user