Compare commits
49 Commits
divergence
...
15d3daa1c8
| Author | SHA1 | Date | |
|---|---|---|---|
| 15d3daa1c8 | |||
| f66ad0b662 | |||
| 1624697a7c | |||
| d33e276dd3 | |||
| 690851ede3 | |||
| 2048c12baa | |||
| 96acd705cb | |||
| ab2413d3c6 | |||
| c3b3bdd6c2 | |||
| e7c6413503 | |||
| 8f228a50bc | |||
| cccadc89c4 | |||
| 12d32846a2 | |||
| a5eafae831 | |||
| e2fd2ba798 | |||
| aee5e664c1 | |||
| 27374f058c | |||
| da2b430ead | |||
| 830f8d51b3 | |||
| 59032852f0 | |||
| 8df8a7ed39 | |||
| 6d3c3630a1 | |||
| f26e79c734 | |||
| 2adff754bd | |||
| 3097ba6084 | |||
| cae95f99af | |||
| 5aded84ef9 | |||
| b03e28e889 | |||
| 2137ea62c5 | |||
| e2c080693c | |||
| ff6ee6b805 | |||
| 040476fabc | |||
| 0b74e05cde | |||
| 65fe6030ac | |||
| 5325c20286 | |||
| 4244e6918a | |||
| 88a4f25fa5 | |||
| 066b45427a | |||
| 01f1e82284 | |||
| dea19e0b3b | |||
| 8b68c27a1f | |||
| a380d9487f | |||
| 542b74f944 | |||
| d2dceba0e9 | |||
| 9dab2276d6 | |||
| 2dfd24b2a9 | |||
| 9713048cfd | |||
| 4f434935f0 | |||
| 78a9a4c493 |
11
.sops.yaml
Normal file
11
.sops.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
keys:
|
||||||
|
- users:
|
||||||
|
- &andreas age19j24x89dfh4f7v58c8k64yupqas4f7qkkyper7yj9dd7vqwvvq0qkyvhxk # generated using cli
|
||||||
|
- hosts:
|
||||||
|
- &th0nkpad-nixos age1ma8x6wugvc40mkst33mejq0m6r44jk6zwjjun3znyer5nztgn9vs0nwjx4 # derived from ssh host key
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: secrets.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *andreas
|
||||||
|
- *th0nkpad-nixos
|
||||||
21
.vscode/tasks.json
vendored
Normal file
21
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "shell",
|
||||||
|
"label": "nixos-rebuild",
|
||||||
|
"command": "bash",
|
||||||
|
"args": [
|
||||||
|
"-c",
|
||||||
|
"sudo nixos-rebuild switch --flake ."
|
||||||
|
],
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
319
flake.lock
generated
319
flake.lock
generated
@@ -3,15 +3,15 @@
|
|||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696426674,
|
"lastModified": 1717312683,
|
||||||
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
|
||||||
"owner": "edolstra",
|
"owner": "nix-community",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
"rev": "38fd3954cf65ce6faf3d0d45cd26059e059f07ea",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "edolstra",
|
"owner": "nix-community",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-compat",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -32,24 +32,19 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-compat_3": {
|
||||||
"inputs": {
|
"flake": false,
|
||||||
"nixpkgs-lib": [
|
|
||||||
"nix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1719994518,
|
"lastModified": 1696426674,
|
||||||
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
"owner": "hercules-ci",
|
"owner": "edolstra",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-compat",
|
||||||
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "hercules-ci",
|
"owner": "edolstra",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-compat",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -71,82 +66,107 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"git-hooks-nix": {
|
"flake-utils-plus": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715533576,
|
||||||
|
"narHash": "sha256-fT4ppWeCJ0uR300EH3i7kmgRZnAVxrH+XtK09jQWihk=",
|
||||||
|
"owner": "gytis-ivaskevicius",
|
||||||
|
"repo": "flake-utils-plus",
|
||||||
|
"rev": "3542fe9126dc492e53ddd252bb0260fe035f2c0f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gytis-ivaskevicius",
|
||||||
|
"repo": "flake-utils-plus",
|
||||||
|
"rev": "3542fe9126dc492e53ddd252bb0260fe035f2c0f",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1694529238,
|
||||||
|
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"game-of-life": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1728511087,
|
||||||
|
"narHash": "sha256-CvO74jwMjUUPySy0QCt7sPImbxKlhWcSAet93Fkt6iU=",
|
||||||
|
"owner": "local-interloper",
|
||||||
|
"repo": "game-of-life",
|
||||||
|
"rev": "c39d37e394f5da79a6a7d198e1d7e505aa5298a7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "local-interloper",
|
||||||
|
"repo": "game-of-life",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [
|
|
||||||
"nix"
|
|
||||||
],
|
|
||||||
"gitignore": [
|
|
||||||
"nix"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nix",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": [
|
|
||||||
"nix",
|
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721042469,
|
"lastModified": 1730837930,
|
||||||
"narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
|
"narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=",
|
||||||
"owner": "cachix",
|
"owner": "nix-community",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "home-manager",
|
||||||
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
|
"rev": "2f607e07f3ac7e53541120536708e824acccfaa8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "cachix",
|
"owner": "nix-community",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libgit2": {
|
"nixos-cosmic": {
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1715853528,
|
|
||||||
"narHash": "sha256-J2rCxTecyLbbDdsyBWn9w7r3pbKRMkI9E7RvRgAqBdY=",
|
|
||||||
"owner": "libgit2",
|
|
||||||
"repo": "libgit2",
|
|
||||||
"rev": "36f7e21ad757a3dacc58cf7944329da6bc1d6e96",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "libgit2",
|
|
||||||
"ref": "v1.8.1",
|
|
||||||
"repo": "libgit2",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nix": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"git-hooks-nix": "git-hooks-nix",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"libgit2": "libgit2",
|
"rust-overlay": "rust-overlay"
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"nixpkgs-23-11": "nixpkgs-23-11",
|
|
||||||
"nixpkgs-regression": "nixpkgs-regression"
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726840928,
|
"lastModified": 1730776371,
|
||||||
"narHash": "sha256-kXJvsJwtf03lb1TNgWDg14wuFTUz+BpwcjuQmVIItGM=",
|
"narHash": "sha256-qLH/qtoBoKZJ5I2Ry312jCVJTfXu6XcCdcXPPAyJhBM=",
|
||||||
"owner": "NixOS",
|
"owner": "lilyinstarlight",
|
||||||
"repo": "nix",
|
"repo": "nixos-cosmic",
|
||||||
"rev": "68ba6ff4709d936c1a714de35da08f8ed354c710",
|
"rev": "c62f5e8c7a9a1ebc4013b617e0e054011c747d49",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nix",
|
"owner": "lilyinstarlight",
|
||||||
"type": "indirect"
|
"repo": "nixos-cosmic",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-wsl": {
|
"nixos-wsl": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726981058,
|
"lastModified": 1726981058,
|
||||||
@@ -165,11 +185,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723688146,
|
"lastModified": 1717179513,
|
||||||
"narHash": "sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz+NG82pbdg=",
|
"narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c3d4ac725177c030b1e289015989da2ad9d56af0",
|
"rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "24.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730602179,
|
||||||
|
"narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -179,39 +215,39 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-23-11": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717159533,
|
"lastModified": 1730602179,
|
||||||
"narHash": "sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw=",
|
"narHash": "sha256-efgLzQAWSzJuCLiCaQUCDu4NudNlHdg2NzGLX5GYaEY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
|
"rev": "3c2f1c4ca372622cb2f9de8016c9a0b1cbd0f37c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
|
"ref": "release-24.05",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs-regression": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1643052045,
|
|
||||||
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730531603,
|
||||||
|
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726320982,
|
"lastModified": 1726320982,
|
||||||
"narHash": "sha256-RuVXUwcYwaUeks6h3OLrEmg14z9aFXdWppTWPMTwdQw=",
|
"narHash": "sha256-RuVXUwcYwaUeks6h3OLrEmg14z9aFXdWppTWPMTwdQw=",
|
||||||
@@ -227,13 +263,13 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726755586,
|
"lastModified": 1728241625,
|
||||||
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
|
"narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
|
"rev": "c31898adf5a8ed202ce5bea9f347b1c6871f32d1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -245,9 +281,77 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nix": "nix",
|
"game-of-life": "game-of-life",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nixos-cosmic": "nixos-cosmic",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_4",
|
||||||
|
"snowfall-lib": "snowfall-lib",
|
||||||
|
"sops-nix": "sops-nix"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixos-cosmic",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730687492,
|
||||||
|
"narHash": "sha256-xQVadjquBA/tFxDt5A55LJ1D1AvkVWsnrKC2o+pr8F4=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "41814763a2c597755b0755dbe3e721367a5e420f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"snowfall-lib": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_3",
|
||||||
|
"flake-utils-plus": "flake-utils-plus",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1719005984,
|
||||||
|
"narHash": "sha256-mpFl3Jv4fKnn+5znYXG6SsBjfXHJdRG5FEqNSPx0GLA=",
|
||||||
|
"owner": "snowfallorg",
|
||||||
|
"repo": "lib",
|
||||||
|
"rev": "c6238c83de101729c5de3a29586ba166a9a65622",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "snowfallorg",
|
||||||
|
"repo": "lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sops-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1730883027,
|
||||||
|
"narHash": "sha256-pvXMOJIqRW0trsW+FzRMl6d5PbsM4rWfD5lcKCOrrwI=",
|
||||||
|
"owner": "mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "c5ae1e214ff935f2d3593187a131becb289ea639",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
@@ -264,6 +368,21 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
182
flake.nix
182
flake.nix
@@ -2,109 +2,101 @@
|
|||||||
description = "Nixos config flake test";
|
description = "Nixos config flake test";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
|
||||||
|
# Snowfallorg's Flake utility
|
||||||
|
snowfall-lib = {
|
||||||
|
url = "github:snowfallorg/lib";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
game-of-life.url = "github:local-interloper/game-of-life";
|
||||||
|
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
|
||||||
|
# Add sops-nix for secrets management
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, nixos-wsl, nix, ... }@inputs:
|
|
||||||
|
outputs = inputs:
|
||||||
let
|
let
|
||||||
system =
|
lib = inputs.snowfall-lib.mkLib {
|
||||||
if builtins ? currentSystem
|
inherit inputs;
|
||||||
then builtins.currentSystem
|
src = ./.;
|
||||||
else "x86_64-linux";
|
|
||||||
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
|
|
||||||
installedPackages = (import ./installed-packages { inherit pkgs; });
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixosConfigurations.drivebystation-nixos-wsl = nixpkgs.lib.nixosSystem {
|
|
||||||
inherit system;
|
|
||||||
modules = [
|
|
||||||
nixos-wsl.nixosModules.default
|
|
||||||
./systems/drivebystation-nixos-wsl/configuration.nix
|
|
||||||
{
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
wsl.enable = true;
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
environment.systemPackages = [
|
|
||||||
|
|
||||||
]
|
channels-config = {
|
||||||
++ installedPackages.mkPackages.packages;
|
allowUnfree = true;
|
||||||
programs.nix-ld = {
|
allowUnfreePredicate = _: true;
|
||||||
enable = true;
|
permittedInsecurePackages = [ "openssl-1.1.1w" ];
|
||||||
package = pkgs.nix-ld-rs;
|
};
|
||||||
};
|
|
||||||
}
|
# Configure Snowfall Lib, all of these settings are optional.
|
||||||
];
|
snowfall = {
|
||||||
specialArgs = { inherit inputs; };
|
# Tell Snowfall Lib to look in the `./nix/` directory for your
|
||||||
|
# Nix files.
|
||||||
|
root = ./.;
|
||||||
|
|
||||||
|
# Choose a namespace to use for your flake's packages, library,
|
||||||
|
# and overlays.
|
||||||
|
namespace = "my-namespace";
|
||||||
|
|
||||||
|
# Add flake metadata that can be processed by tools like Snowfall Frost.
|
||||||
|
meta = {
|
||||||
|
# A slug to use in documentation when displaying things like file paths.
|
||||||
|
name = "nixos-config-hionv";
|
||||||
|
|
||||||
|
# A title to show for your flake, typically the name.
|
||||||
|
title = "Hion's Personal NixOS Config";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
in
|
||||||
inherit system;
|
lib.mkFlake {
|
||||||
modules = [
|
inherit inputs;
|
||||||
./systems/th0nkpad-nixos/configuration.nix
|
src = ./.;
|
||||||
{
|
|
||||||
system.stateVersion = "24.05";
|
nixos = with inputs; [
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
# disko.nixosModules.disko
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# impermanence.nixosModules.impermanence
|
||||||
users.users.andreas = {
|
home-manager.nixosModules.home-manager
|
||||||
isNormalUser = true;
|
{
|
||||||
description = "Andreas";
|
home-manager = {
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
useGlobalPkgs = true;
|
||||||
packages = with pkgs; [
|
useUserPackages = true;
|
||||||
flatpak
|
};
|
||||||
gnome-software
|
}
|
||||||
soundwireserver
|
# nix-ld.nixosModules.nix-ld
|
||||||
vscode
|
# sops-nix.nixosModules.sops
|
||||||
# thunderbird
|
# stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
systems.modules.nixos = with inputs; [
|
||||||
|
# my-input.nixosModules.my-module
|
||||||
|
];
|
||||||
|
|
||||||
|
# The attribute set specified here will be passed directly to NixPkgs when
|
||||||
|
# instantiating the package set.
|
||||||
|
channels-config = {
|
||||||
|
# Allow unfree packages.
|
||||||
|
allowUnfree = true;
|
||||||
|
|
||||||
|
# # Allow certain insecure packages
|
||||||
|
# permittedInsecurePackages = [
|
||||||
|
# "firefox-100.0.0"
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# # Additional configuration for specific packages.
|
||||||
|
# config = {
|
||||||
|
# # For example, enable smartcard support in Firefox.
|
||||||
|
# firefox.smartcardSupport = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
|
||||||
# Open ports in the firewall.
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
];
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
|
||||||
59010 #SoundWireServer
|
|
||||||
3389 #RDP
|
|
||||||
];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# Set up system Packages
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
git
|
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
||||||
# wget
|
|
||||||
]
|
|
||||||
++ installedPackages.mkPackages.packages;
|
|
||||||
programs.nix-ld = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nix-ld-rs;
|
|
||||||
};
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
systemd.services.flatpak-repo = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
path = [ pkgs.flatpak ];
|
|
||||||
script = ''
|
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.xrdp.enable = true;
|
|
||||||
services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
|
||||||
# services.xrdp.openFirewall = true;
|
|
||||||
|
|
||||||
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
|
||||||
# If no user is logged in, the machine will power down after 20 minutes.
|
|
||||||
systemd.targets.sleep.enable = false;
|
|
||||||
systemd.targets.suspend.enable = false;
|
|
||||||
systemd.targets.hibernate.enable = false;
|
|
||||||
systemd.targets.hybrid-sleep.enable = false;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
0
homes/x86_64-iso/.gitkeep
Normal file
0
homes/x86_64-iso/.gitkeep
Normal file
32
homes/x86_64-linux/andreas@drivebystation-nix/default.nix
Normal file
32
homes/x86_64-linux/andreas@drivebystation-nix/default.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib.my-namespace) enabled;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# ../modules.nix
|
||||||
|
];
|
||||||
|
my-namespace.home = {
|
||||||
|
stream-tools = enabled;
|
||||||
|
gnome-customizations = enabled;
|
||||||
|
# networking = enabled;
|
||||||
|
# personal-apps = enabled;
|
||||||
|
# suites.laptop = enabled;
|
||||||
|
};
|
||||||
|
home = {
|
||||||
|
packages = [
|
||||||
|
pkgs.nil
|
||||||
|
pkgs.steam
|
||||||
|
pkgs.gamemode
|
||||||
|
pkgs.beeper
|
||||||
|
pkgs.my-namespace.udev-steelseries
|
||||||
|
pkgs.qbittorrent
|
||||||
|
pkgs.vesktop
|
||||||
|
pkgs.obsidian
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
0
homes/x86_64-linux/andreas@nixos-wsl/.gitkeep
Normal file
0
homes/x86_64-linux/andreas@nixos-wsl/.gitkeep
Normal file
0
homes/x86_64-linux/andreas@th0nkpad-nixos/.gitkeep
Normal file
0
homes/x86_64-linux/andreas@th0nkpad-nixos/.gitkeep
Normal file
25
homes/x86_64-linux/andreas@th0nkpad-nixos/default.nix
Normal file
25
homes/x86_64-linux/andreas@th0nkpad-nixos/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib.my-namespace) enabled;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# ../modules.nix
|
||||||
|
];
|
||||||
|
my-namespace.home = {
|
||||||
|
stream-tools = enabled;
|
||||||
|
# networking = enabled;
|
||||||
|
# personal-apps = enabled;
|
||||||
|
# suites.laptop = enabled;
|
||||||
|
};
|
||||||
|
home = {
|
||||||
|
packages = [
|
||||||
|
pkgs.nil
|
||||||
|
pkgs.beeper
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
31
homes/x86_64-linux/gaming@drivebystation-nix/default.nix
Normal file
31
homes/x86_64-linux/gaming@drivebystation-nix/default.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib.my-namespace) enabled;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# ../modules.nix
|
||||||
|
];
|
||||||
|
my-namespace.home = {
|
||||||
|
stream-tools = enabled;
|
||||||
|
gnome-customizations = enabled;
|
||||||
|
# networking = enabled;
|
||||||
|
# personal-apps = enabled;
|
||||||
|
# suites.laptop = enabled;
|
||||||
|
};
|
||||||
|
home = {
|
||||||
|
packages = [
|
||||||
|
pkgs.nil
|
||||||
|
pkgs.steam
|
||||||
|
pkgs.gamemode
|
||||||
|
pkgs.beeper
|
||||||
|
pkgs.my-namespace.udev-steelseries
|
||||||
|
pkgs.qbittorrent
|
||||||
|
pkgs.vesktop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
{ pkgs }:
|
|
||||||
let
|
|
||||||
baseBackages = [
|
|
||||||
pkgs.vim
|
|
||||||
pkgs.nixpkgs-fmt
|
|
||||||
];
|
|
||||||
utilPackages = [
|
|
||||||
pkgs.wget
|
|
||||||
pkgs.curl
|
|
||||||
pkgs.git
|
|
||||||
pkgs.ffmpeg
|
|
||||||
];
|
|
||||||
haxeDevelopmentPackages = [
|
|
||||||
pkgs.haxe
|
|
||||||
];
|
|
||||||
in
|
|
||||||
{
|
|
||||||
mkPackages = {
|
|
||||||
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
32
lib/default.nix
Normal file
32
lib/default.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{lib, ...}: let
|
||||||
|
inherit (lib) mkOption strings;
|
||||||
|
inherit (lib.attrsets) filterAttrs mapAttrsToList;
|
||||||
|
inherit (lib.types) bool;
|
||||||
|
in rec {
|
||||||
|
disabled = {enable = false;};
|
||||||
|
enabled = {enable = true;};
|
||||||
|
ifThenElse = cond: t: f:
|
||||||
|
if cond
|
||||||
|
then t
|
||||||
|
else f;
|
||||||
|
mkOpt = type: default: description:
|
||||||
|
mkOption {inherit type default description;};
|
||||||
|
mkOpt' = type: default: mkOpt type default null;
|
||||||
|
mkBoolOpt = mkOpt bool;
|
||||||
|
mkBoolOpt' = mkOpt' bool;
|
||||||
|
mkPxeMenu = args:
|
||||||
|
''
|
||||||
|
UI menu.c32
|
||||||
|
TIMEOUT 300
|
||||||
|
''
|
||||||
|
+ strings.concatStringsSep "\n" (mapAttrsToList
|
||||||
|
(
|
||||||
|
name: value: ''
|
||||||
|
LABEL ${name}
|
||||||
|
MENU LABEL ${value.content.label}
|
||||||
|
KERNEL ${value.content.kernel}
|
||||||
|
append ${value.content.append}
|
||||||
|
''
|
||||||
|
)
|
||||||
|
(filterAttrs (_: v: v.condition) args));
|
||||||
|
}
|
||||||
45
lib/installed-packages/default.nix
Normal file
45
lib/installed-packages/default.nix
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
# This is the merged library containing your namespaced library as well as all libraries from
|
||||||
|
# your flake's inputs.
|
||||||
|
lib
|
||||||
|
, # Your flake inputs are also available.
|
||||||
|
inputs
|
||||||
|
, # The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace
|
||||||
|
, # Additionally, Snowfall Lib's own inputs are passed. You probably don't need to use this!
|
||||||
|
snowfall-inputs
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
# This will be available as `lib.my-namespace.mkPackages`.
|
||||||
|
mkPackages = {pkgs, ...}:
|
||||||
|
let
|
||||||
|
inherit pkgs;
|
||||||
|
# pkgs = namespace.;
|
||||||
|
# pkgs = snowfall-inputs.nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
|
||||||
|
baseBackages = [
|
||||||
|
pkgs.vim
|
||||||
|
pkgs.nixpkgs-fmt
|
||||||
|
];
|
||||||
|
utilPackages = [
|
||||||
|
pkgs.wget
|
||||||
|
pkgs.curl
|
||||||
|
pkgs.git
|
||||||
|
pkgs.ffmpeg
|
||||||
|
];
|
||||||
|
haxeDevelopmentPackages = [
|
||||||
|
pkgs.haxe
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
packages = baseBackages ++ utilPackages ++ haxeDevelopmentPackages;
|
||||||
|
};
|
||||||
|
|
||||||
|
# my-scope = {
|
||||||
|
# # This will be available as `lib.my-namespace.my-scope.my-scoped-helper-function`.
|
||||||
|
# my-scoped-helper-function = x: x;
|
||||||
|
# };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
0
modules/.gitkeep
Normal file
0
modules/.gitkeep
Normal file
19
modules/home/gnome-customizations/default.nix
Normal file
19
modules/home/gnome-customizations/default.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{ pkgs
|
||||||
|
, config
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.my-namespace.home.gnome-customizations;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my-namespace.home.gnome-customizations = {
|
||||||
|
enable = mkEnableOption "Enable GNOME customizations";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# GNOME settings
|
||||||
|
dconf.settings."org/gnome/desktop/wm/preferences".button-layout = "appmenu:,minimize,maximize,close";
|
||||||
|
dconf.settings."org/gnome/mutter".experimental-features = [ "scale-monitor-framebuffer" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
59
modules/home/home/default.nix
Normal file
59
modules/home/home/default.nix
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
inherit (lib.my-namespace) enabled;
|
||||||
|
|
||||||
|
imp = config.my-namespace.home.impermanence.enable;
|
||||||
|
in {
|
||||||
|
config = {
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
inetutils
|
||||||
|
neofetch
|
||||||
|
tmux
|
||||||
|
nerdfonts
|
||||||
|
p7zip
|
||||||
|
rclone
|
||||||
|
ripgrep
|
||||||
|
unzip
|
||||||
|
zip
|
||||||
|
];
|
||||||
|
sessionPath = ["$HOME/bin" "$HOME/.local/bin"];
|
||||||
|
shellAliases = {
|
||||||
|
# "df" = "duf -only local";
|
||||||
|
# "du" = "dust -xd1 --skip-total";
|
||||||
|
# # "ducks" = "du -chs * 2>/dev/null | sort -rh | head -11 && du -chs .* 2>/dev/null | sort -rh | head -11";
|
||||||
|
# "gmount" = "rclone mount google:/ ~/Drive/";
|
||||||
|
"df" = "df -h";
|
||||||
|
"nano" = "vim";
|
||||||
|
};
|
||||||
|
stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
# manual = {
|
||||||
|
# html.enable = false;
|
||||||
|
# manpages.enable = false;
|
||||||
|
# json.enable = false;
|
||||||
|
# };
|
||||||
|
programs = {
|
||||||
|
bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
enableVteIntegration = true;
|
||||||
|
};
|
||||||
|
dircolors = enabled;
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
nix-direnv = enabled;
|
||||||
|
};
|
||||||
|
home-manager = enabled;
|
||||||
|
};
|
||||||
|
services = {
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
21
modules/home/stream-tools/default.nix
Normal file
21
modules/home/stream-tools/default.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.my-namespace.home.stream-tools;
|
||||||
|
in {
|
||||||
|
options.my-namespace.home.stream-tools = {
|
||||||
|
enable = mkEnableOption "Enable the Stream Machine Tools";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
obs-studio
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
0
overlays/.gitkeep
Normal file
0
overlays/.gitkeep
Normal file
69
packages/hello/default.nix
Normal file
69
packages/hello/default.nix
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
|
||||||
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace,
|
||||||
|
|
||||||
|
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
||||||
|
# programmatically or you may add the named attributes as arguments here.
|
||||||
|
stdenv,
|
||||||
|
fetchurl,
|
||||||
|
nixos,
|
||||||
|
callPackage,
|
||||||
|
testers,
|
||||||
|
versionCheckHook,
|
||||||
|
hello,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "hello";
|
||||||
|
version = "2.12.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnu/hello/hello-${finalAttrs.version}.tar.gz";
|
||||||
|
hash = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
# The GNU Hello `configure` script detects how to link libiconv but fails to actually make use of that.
|
||||||
|
# Unfortunately, this cannot be a patch to `Makefile.am` because `autoreconfHook` causes a gettext
|
||||||
|
# infrastructure mismatch error when trying to build `hello`.
|
||||||
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
||||||
|
NIX_LDFLAGS = "-liconv";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
nativeInstallCheckInputs = [
|
||||||
|
versionCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# Give hello some install checks for testing purpose.
|
||||||
|
postInstallCheck = ''
|
||||||
|
stat "''${!outputBin}/bin/${finalAttrs.meta.mainProgram}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
version = testers.testVersion { package = hello; };
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru.tests.run = callPackage ./test.nix { hello = finalAttrs.finalPackage; };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Program that produces a familiar, friendly greeting";
|
||||||
|
longDescription = ''
|
||||||
|
GNU Hello is a program that prints "Hello, world!" when you run it.
|
||||||
|
It is fully customizable.
|
||||||
|
'';
|
||||||
|
homepage = "https://www.gnu.org/software/hello/manual/";
|
||||||
|
changelog = "https://git.savannah.gnu.org/cgit/hello.git/plain/NEWS?h=v${finalAttrs.version}";
|
||||||
|
license = lib.licenses.gpl3Plus;
|
||||||
|
maintainers = with lib.maintainers; [ stv0g ];
|
||||||
|
mainProgram = "hello";
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
};
|
||||||
|
})
|
||||||
8
packages/hello/test.nix
Normal file
8
packages/hello/test.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ runCommand, hello }:
|
||||||
|
|
||||||
|
runCommand "hello-test-run" {
|
||||||
|
nativeBuildInputs = [ hello ];
|
||||||
|
} ''
|
||||||
|
diff -U3 --color=auto <(hello) <(echo 'Hello, world!')
|
||||||
|
touch $out
|
||||||
|
''
|
||||||
48
packages/udev-steelseries/default.nix
Normal file
48
packages/udev-steelseries/default.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
|
||||||
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace,
|
||||||
|
|
||||||
|
# All other arguments come from NixPkgs. You can use `pkgs` to pull packages or helpers
|
||||||
|
# programmatically or you may add the named attributes as arguments here.
|
||||||
|
pkgs,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "steelseries-udev-rules";
|
||||||
|
version = "unstable-2024-11-10";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "MiddleMan5";
|
||||||
|
repo = "steelseries-linux";
|
||||||
|
rev = "d93dfdb6daeec150578e85e25b2e9df79e9539b7";
|
||||||
|
sha256 = "sha256-yPw8QFKhlqb6lxQyYjBz34pEEfTVk1Yp9jFWdX5yH2k=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/lib/udev/rules.d
|
||||||
|
cp resources/98-steelseries.rules $out/lib/udev/rules.d/98-steelseries.rules
|
||||||
|
mkdir -p $out/etc/udev/rules.d
|
||||||
|
cp resources/98-steelseries-init.py $out/etc/udev/rules.d/98-steelseries-init.py
|
||||||
|
chmod +x $out/etc/udev/rules.d/98-steelseries-init.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "udev rules for Steelseries devices";
|
||||||
|
license = licenses.unfree;
|
||||||
|
maintainers = with maintainers; [ asymmetric ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
homepage = "https://github.com/MiddleMan5/steelseries-linux";
|
||||||
|
};
|
||||||
|
}
|
||||||
42
secrets.yaml
Normal file
42
secrets.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
private-keys:
|
||||||
|
andreas: ENC[AES256_GCM,data:UMOMU5vd+kOvReBP+noCPopsP90uAx0UM5mLgsXX1obks3DvcW28yVpLR952CroDzUOYwpkQ+7MheBznZxVfG6+b36rzphIUyDXArix3c90mak+4fhkUFAxsAW2VeKzUTGEBIUiejtfW4sBaHoQVWpDBSLbGajB9GzBXspNR+J/nriD8xas9ZkvYvFM4BIKM5vFNQxCGUy44IyHffxtX9kHjboiSeIgK7Gj1hA4iC/byIBqTLzJOCBHQs3irs/CSbZgFR7MFuiqR2ZWVdJ1dKAr9fejd36muymsutVUDzTsq/P1Id0YlgnYVcpJxAMHKq8QEZu8yNLEzkr/QMxs5Z2Bu93CkiJDAGXJZvtipfLX0UtIkResCLBD40EKty8U2OnKwm4k3xzJoHRTZ3qVnJQGESYHTZHHumRRcDYJnQBL6iav50mG0KS0mfcoetoDTpQfxsi3OnLO7kjSP2fE8sSJRi363nfciBwH/TTf911HhD5ruOo3bQeryjtGN8Y+PAqvrILiIKPODvoRVqaka,iv:lvlaQwEzDpvdSjH6Z4NrzABifyVP5jyzERHP72CSbis=,tag:rmSINraNXFZElfFHZDqeeQ==,type:str]
|
||||||
|
andreas-password: ENC[AES256_GCM,data:XBvfrBSrlKzpO9vgmwQYJshlJH1OCMrcdfYMvp32ZOFZSf4/GrM/FRaatS7to+0ZgJlLNt+npSK0nwV8NXvwgHgN8bsuDiL7KQ==,iv:lD0ruX5AVKVfdA0/vpeUAPf5cTSExyaF8VWebFkbXV8=,tag:nAuwEkHGtlEzu8Qbe0ECdA==,type:str]
|
||||||
|
#ENC[AES256_GCM,data:aX2EVkOK7ivoDTzSMmonY64dU6mnRjE83sA3MFIPnzeJ5snZN8WY9PF1CmkDU/ZVB+j9Law=,iv:sPfVyBuGCyd/Y9Lw9cl0akA2IUE5/Yi5C07dh6Ioyu0=,tag:tOT5uHVdgYG+/E4ye0QcFg==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:djH8vAA+TvvbA/Jsuvca7E4o6pYTfKGGdK4=,iv:5Dw0niDhi7P6P9XRz2qgSL3CxpiXBtIsekOMycroLrA=,tag:OSvPPgq0kV4JskrQ86Qp5A==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:C1BstOPXnCf4Cr8UlanCegA=,iv:k9Me959xb6Weg/yArAIg5kWH36se/yyGWNQUu314uw0=,tag:x0bTh0bsYxbCX5GObsGI5g==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:Q0vsUrzlOgDICeIxXtc=,iv:gR8sYrtE/v9GGDEO2nj/v5IHr9ycXhvv1VcB/dEH/FU=,tag:FBde9vkRM/drFtpTWfLcNg==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:LoKuLBSze19z0U/45DBFt6aEJBs=,iv:Btk0sBgj8h5Qk5eYNwPHULuhPu0nXSXE2iR4UVFcBeA=,tag:S2I9HQkeo/jJboy44vrgCw==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:wDZ6Ln5teASPxXPvQGRZCdBIvfY=,iv:Qnx32skeDMB21GwhXd5fImkHS+y+HUOdNvbMT2mpy6A=,tag:BKl04542M8rH6BpFERqHZg==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:f+g7qdm8xf/wDhQqlnzIdmHhzfOG73VWfdw=,iv:/kDspwnXH7QfhzUuHATQTniLm/ZX6mo/QGxyQXdubcY=,tag:muoXeMNHb5vqm8IoC6Gl4A==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:42kR+DANphdxNVWNlxePU8U=,iv:JeZgMtb7a+/7V5hruQIHio0Aj+ThpHZwajx10e0rqOA=,tag:Ln+7DFl6+aq4YLZ8GK9qOg==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:DjK/fZDWEaa2BA==,iv:AnceR62V3OJrn5utgdffMcC+mWdxsUYMYn6454SVCsY=,tag:MRa8cDMEMGtBCxvqcKy/0Q==,type:comment]
|
||||||
|
#ENC[AES256_GCM,data:jqzidzai+6ShhzM=,iv:PDjUgLaoFVxAWBLXfWkXRzBp5BuvGU7DCorRYY6dan0=,tag:dKa2O7n/jno/M5nzCzCD/w==,type:comment]
|
||||||
|
sops:
|
||||||
|
kms: []
|
||||||
|
gcp_kms: []
|
||||||
|
azure_kv: []
|
||||||
|
hc_vault: []
|
||||||
|
age:
|
||||||
|
- recipient: age19j24x89dfh4f7v58c8k64yupqas4f7qkkyper7yj9dd7vqwvvq0qkyvhxk
|
||||||
|
enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBBdGZlV3R4eW5FYS9HZGYr
|
||||||
|
N3VSR0tIbzUrL0RsUEw2NkZtUWcxVG55bEIwCjQ5U0Ztd1luUEQ2SEg4RHA2RWRK
|
||||||
|
K3dhN2liMDYyZElhbkZEUC9namhrc2MKLS0tIEhYTEYwQWduNkdKbGJQcTBRUWVG
|
||||||
|
aDMwR1I5NG13dUhwRXg1TXI4dG9nWXMKti+hv0+7/Rz0W22bToYs1/DFzoMllHpB
|
||||||
|
7uuVpUFDuC2D40ize0UX4rJ8Yo63lhJrRpsxIhzkP/vq+wMAFrKKLg==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
- recipient: age1ma8x6wugvc40mkst33mejq0m6r44jk6zwjjun3znyer5nztgn9vs0nwjx4
|
||||||
|
enc: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBnK0dSTTVJWmt3aS91UmFm
|
||||||
|
Ui9zT3VpMlBybWJXOVdKdU5mTkprdU5WRm00CktHd2g4M1VldHhTQyszRTVTOUtt
|
||||||
|
Mld4a3lYSHF2SytIc0RjQ1RoODQvaE0KLS0tIGN3SlpMeTEvNktNSm5oT0dXRVFr
|
||||||
|
UmZrTXhyM2hYWW1kY05xa01PM1MzUDAK67AkP1XE445RXbVxcksRXL7MYHFjLPLV
|
||||||
|
ITL404AabakBeOX9yixwymzkD1BbUYEdW6N28ntqdH5cZZfVteYdMA==
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
lastmodified: "2024-11-07T10:47:23Z"
|
||||||
|
mac: ENC[AES256_GCM,data:zqkbmx7XIHQnOVkozPLiBzsNhACbGwvWiFcFlEHhlyEeQ7rvltLlUlgivb7aawwG1RuxCwshHwLfuKRQ/iGJcXjFO4UM5VER6CAA/88UrpgXW8VBw8iuchr+Y58lu0s+98fj7VffcuWjhJ1AYvBxFaTZA6DjxFjv3l1Gyxtw6kM=,iv:XG9Qb61INy1OJZjI3cDbY9fswLqf8+QvcUMrmtKGtuQ=,tag:+JacTF/+qU+j/cm8Wn1c8g==,type:str]
|
||||||
|
pgp: []
|
||||||
|
unencrypted_suffix: _unencrypted
|
||||||
|
version: 3.9.1
|
||||||
0
shells/.gitkeep
Normal file
0
shells/.gitkeep
Normal file
0
systems/x86_64-iso/.gitkeep
Normal file
0
systems/x86_64-iso/.gitkeep
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
boot.kernelParams = [ "drm.edid_firmware=DP-3:edid/edid.bin" ];
|
||||||
|
|
||||||
|
hardware.firmware = [
|
||||||
|
(
|
||||||
|
pkgs.runCommand "edid.bin" { } ''
|
||||||
|
mkdir -p $out/lib/firmware/edid
|
||||||
|
cp ${./firmware/KG271-edid.bin} $out/lib/firmware/edid/edid.bin
|
||||||
|
''
|
||||||
|
)];
|
||||||
|
}
|
||||||
132
systems/x86_64-linux/drivebystation-nix/configuration.nix
Normal file
132
systems/x86_64-linux/drivebystation-nix/configuration.nix
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
networking.hostName = "drivebystation-nix"; # Define your hostname.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "nl_NL.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||||||
|
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||||||
|
LC_MONETARY = "nl_NL.UTF-8";
|
||||||
|
LC_NAME = "nl_NL.UTF-8";
|
||||||
|
LC_NUMERIC = "nl_NL.UTF-8";
|
||||||
|
LC_PAPER = "nl_NL.UTF-8";
|
||||||
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||||
|
LC_TIME = "nl_NL.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
# Enable the GNOME Desktop Environment.
|
||||||
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
|
# services.xserver.displayManager.lightdm.enable = true;
|
||||||
|
# services.xserver.displayManager.autoLogin.enable = true;
|
||||||
|
# services.xserver.displayManager.autoLogin.user = "andreas";
|
||||||
|
# systemd.services."getty@tty1".enable = false;
|
||||||
|
# systemd.services."autovt@tty1".enable = false;
|
||||||
|
|
||||||
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
|
programs.ssh.askPassword = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "intl";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure console keymap
|
||||||
|
console.keyMap = "us-acentos";
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
# If you want to use JACK applications, uncomment this
|
||||||
|
#jack.enable = true;
|
||||||
|
|
||||||
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||||
|
# no need to redefine it in your config for now)
|
||||||
|
#media-session.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
# wget
|
||||||
|
];
|
||||||
|
|
||||||
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
# started in user sessions.
|
||||||
|
# programs.mtr.enable = true;
|
||||||
|
# programs.gnupg.agent = {
|
||||||
|
# enable = true;
|
||||||
|
# enableSSHSupport = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
# services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# This value determines the NixOS release from which the default
|
||||||
|
# settings for stateful data, like file locations and database versions
|
||||||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# Before changing this value read the documentation for this option
|
||||||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
132
systems/x86_64-linux/drivebystation-nix/default.nix
Normal file
132
systems/x86_64-linux/drivebystation-nix/default.nix
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
# nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# An instance of `pkgs` with your overlays and packages applied is also available.
|
||||||
|
pkgs,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
# Additional metadata is provided by Snowfall Lib.
|
||||||
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace,
|
||||||
|
# The system architecture for this host (eg. `x86_64-linux`).
|
||||||
|
system,
|
||||||
|
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
||||||
|
target,
|
||||||
|
# A normalized name for the system target (eg. `iso`).
|
||||||
|
format,
|
||||||
|
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
||||||
|
virtual,
|
||||||
|
# An attribute map of your defined hosts.
|
||||||
|
systems,
|
||||||
|
# All other arguments come from the system system.
|
||||||
|
config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit pkgs;
|
||||||
|
installedPackages = lib.my-namespace.mkPackages pkgs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# inherit system;
|
||||||
|
imports = [
|
||||||
|
./configuration.nix
|
||||||
|
./steam.nix
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.andreas = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Andreas Schaafsma";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
flatpak
|
||||||
|
gnome-software
|
||||||
|
soundwireserver
|
||||||
|
vscode
|
||||||
|
spotify
|
||||||
|
appimage-run
|
||||||
|
inputs.game-of-life.packages.x86_64-linux.default
|
||||||
|
inputs.nixos-cosmic
|
||||||
|
# thunderbird
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# lib.my-namespace.home.stream-tools.enable = true;
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
# Set up system Packages
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
pkgs.wine
|
||||||
|
pkgs.bottles
|
||||||
|
pkgs.gparted
|
||||||
|
pkgs.ntfs3g
|
||||||
|
pkgs.ntfsprogs
|
||||||
|
pkgs.my-namespace.udev-steelseries
|
||||||
|
pkgs.my-namespace.hello
|
||||||
|
|
||||||
|
pkgs.nvtopPackages.nvidia
|
||||||
|
pkgs.mesa
|
||||||
|
pkgs.vulkan-loader
|
||||||
|
pkgs.vulkan-validation-layers
|
||||||
|
pkgs.vulkan-extension-layer
|
||||||
|
pkgs.vulkan-tools
|
||||||
|
pkgs.libva
|
||||||
|
pkgs.libva-utils
|
||||||
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
# wget
|
||||||
|
]
|
||||||
|
++ installedPackages.packages;
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-ld-rs;
|
||||||
|
};
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
systemd.services.flatpak-repo = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.flatpak ];
|
||||||
|
script = ''
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
settings.PasswordAuthentication = true;
|
||||||
|
# settings = {
|
||||||
|
# # passwordAuthentication = true;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# services.xrdp.enable = true;
|
||||||
|
# services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
||||||
|
# services.xrdp.openFirewall = true;
|
||||||
|
|
||||||
|
|
||||||
|
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
||||||
|
# If no user is logged in, the machine will power down after 20 minutes.
|
||||||
|
systemd.targets.sleep.enable = false;
|
||||||
|
systemd.targets.suspend.enable = false;
|
||||||
|
systemd.targets.hibernate.enable = false;
|
||||||
|
systemd.targets.hybrid-sleep.enable = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
BIN
systems/x86_64-linux/drivebystation-nix/firmware/KG271-edid.bin
Executable file
BIN
systems/x86_64-linux/drivebystation-nix/firmware/KG271-edid.bin
Executable file
Binary file not shown.
@@ -0,0 +1,41 @@
|
|||||||
|
# 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")
|
||||||
|
./nvidia.nix
|
||||||
|
./acer-monitor-edid.nix
|
||||||
|
];
|
||||||
|
#boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.blacklistedKernelModules = [ ];
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/E846-D998";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp72s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
}
|
||||||
72
systems/x86_64-linux/drivebystation-nix/nvidia.nix
Normal file
72
systems/x86_64-linux/drivebystation-nix/nvidia.nix
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
# Enable OpenGL
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Load nvidia driver for Xorg and Wayland
|
||||||
|
# boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
||||||
|
# boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11_production ];
|
||||||
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11_beta ];
|
||||||
|
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
"nvidia-drm.fbdev=1"
|
||||||
|
"nvidia-drm.modeset=1"
|
||||||
|
# "nvidia_drm.modeset=1"
|
||||||
|
];
|
||||||
|
boot.blacklistedKernelModules = [
|
||||||
|
"i915"
|
||||||
|
"amdgpu"
|
||||||
|
"nouveau"
|
||||||
|
];
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
"nvidia"
|
||||||
|
"nvidia-drm"
|
||||||
|
"nvidia-modeset"
|
||||||
|
"nvidia-uvm"
|
||||||
|
"i2c-nvidia_gpu"
|
||||||
|
];
|
||||||
|
#boot.initrd.kernelModules = [ "nvidia" ];
|
||||||
|
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
# Modesetting is required.
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
|
# Enable this if you have graphical corruption issues or application crashes after waking
|
||||||
|
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
|
||||||
|
# of just the bare essentials.
|
||||||
|
powerManagement.enable = false;
|
||||||
|
|
||||||
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
|
# independent third-party "nouveau" open source driver).
|
||||||
|
# Support is limited to the Turing and later architectures. Full list of
|
||||||
|
# supported GPUs is at:
|
||||||
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
|
# Only available from driver 515.43.04+
|
||||||
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
# Enable the Nvidia settings menu,
|
||||||
|
# accessible via `nvidia-settings`.
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
|
# package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
|
|
||||||
|
};
|
||||||
|
users.users.andreas = {
|
||||||
|
extraGroups = [ "video" "render" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
72
systems/x86_64-linux/drivebystation-nix/steam.nix
Normal file
72
systems/x86_64-linux/drivebystation-nix/steam.nix
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# An instance of `pkgs` with your overlays and packages applied is also available.
|
||||||
|
pkgs,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
# Additional metadata is provided by Snowfall Lib.
|
||||||
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace,
|
||||||
|
# The system architecture for this host (eg. `x86_64-linux`).
|
||||||
|
system,
|
||||||
|
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
||||||
|
target,
|
||||||
|
# A normalized name for the system target (eg. `iso`).
|
||||||
|
format,
|
||||||
|
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
||||||
|
virtual,
|
||||||
|
# An attribute map of your defined hosts.
|
||||||
|
systems,
|
||||||
|
# All other arguments come from the system system.
|
||||||
|
config
|
||||||
|
, ...
|
||||||
|
}:{
|
||||||
|
config = {
|
||||||
|
programs.gamescope.enable = true;
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||||
|
|
||||||
|
gamescopeSession = {
|
||||||
|
enable = true;
|
||||||
|
env = {
|
||||||
|
WLR_RENDERER = "vulkan";
|
||||||
|
DXVK_HDR = "1 ";
|
||||||
|
ENABLE_GAMESCOPE_WSI = "1";
|
||||||
|
WINE_FULLSCREEN_FSR = "1";
|
||||||
|
# Games allegedly prefer X11
|
||||||
|
SDL_VIDEODRIVER = "x11";
|
||||||
|
};
|
||||||
|
args = [
|
||||||
|
"--xwayland-count 1"
|
||||||
|
"--expose-wayland"
|
||||||
|
|
||||||
|
"-e" # Enable steam integration
|
||||||
|
"--steam"
|
||||||
|
|
||||||
|
"--adaptive-sync"
|
||||||
|
"--hdr-enabled"
|
||||||
|
"--hdr-itm-enable"
|
||||||
|
|
||||||
|
# External monitor
|
||||||
|
"--prefer-output DP-3"
|
||||||
|
"--output-width 1920"
|
||||||
|
"--output-height 1080"
|
||||||
|
"-r 172"
|
||||||
|
|
||||||
|
# Laptop display
|
||||||
|
# "--prefer-output eDP-1"
|
||||||
|
# "--output-width 2560"
|
||||||
|
# "--output-height 1600"
|
||||||
|
# "-r 120"
|
||||||
|
|
||||||
|
"--prefer-vk-device 10de:1b81" # lspci -nn | grep VGA
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
];
|
];
|
||||||
|
networking.hostName = "drivebystation-nixos-wsl";
|
||||||
|
|
||||||
# Enable Experimental Features
|
# Enable Experimental Features
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
46
systems/x86_64-linux/drivebystation-nixos-wsl/default.nix
Normal file
46
systems/x86_64-linux/drivebystation-nixos-wsl/default.nix
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
|
||||||
|
# nixosConfigurations.drivebystation-nixos-wsl = nixpkgs.lib.nixosSystem {
|
||||||
|
#
|
||||||
|
# };
|
||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# An instance of `pkgs` with your overlays and packages applied is also available.
|
||||||
|
pkgs,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
# Additional metadata is provided by Snowfall Lib.
|
||||||
|
namespace, # The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
system, # The system architecture for this host (eg. `x86_64-linux`).
|
||||||
|
target, # The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
||||||
|
format, # A normalized name for the system target (eg. `iso`).
|
||||||
|
virtual, # A boolean to determine whether this system is a virtual target using nixos-generators.
|
||||||
|
systems, # An attribute map of your defined hosts.
|
||||||
|
|
||||||
|
# All other arguments come from the system system.
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
inherit system;
|
||||||
|
modules = [
|
||||||
|
nixos-wsl.nixosModules.default
|
||||||
|
./configuration.nix
|
||||||
|
{
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
wsl.enable = true;
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
environment.systemPackages = [
|
||||||
|
|
||||||
|
]
|
||||||
|
++ installedPackages.mkPackages.packages;
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-ld-rs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
# Your configuration.
|
||||||
|
}
|
||||||
@@ -44,29 +44,25 @@
|
|||||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||||
LC_TIME = "nl_NL.UTF-8";
|
LC_TIME = "nl_NL.UTF-8";
|
||||||
};
|
};
|
||||||
|
# Enable the X11 windowing system
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
# Enable the GNOME Desktop Environment
|
||||||
# Enable the GNOME Desktop Environment.
|
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver.xkb = {
|
services.xserver.xkb = {
|
||||||
layout = "us";
|
layout = "us";
|
||||||
variant = "intl";
|
variant = "intl";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "us-acentos";
|
console.keyMap = "us-acentos";
|
||||||
|
# Enable CUPS to print documents
|
||||||
# Enable CUPS to print documents.
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
# Enable sound with pulse (pipewire)
|
||||||
# Enable sound with pipewire.
|
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
# Enable realtimekit (pulse requirement)
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
# Configure pipewire service
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
@@ -106,5 +102,4 @@
|
|||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "24.05"; # Did you read the comment?
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
113
systems/x86_64-linux/th0nkpad-nixos/default.nix
Normal file
113
systems/x86_64-linux/th0nkpad-nixos/default.nix
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
# nixosConfigurations.th0nkpad-nixos = nixpkgs.lib.nixosSystem {
|
||||||
|
|
||||||
|
{
|
||||||
|
# Snowfall Lib provides a customized `lib` instance with access to your flake's library
|
||||||
|
# as well as the libraries available from your flake's inputs.
|
||||||
|
lib,
|
||||||
|
# An instance of `pkgs` with your overlays and packages applied is also available.
|
||||||
|
pkgs,
|
||||||
|
# You also have access to your flake's inputs.
|
||||||
|
inputs,
|
||||||
|
# Additional metadata is provided by Snowfall Lib.
|
||||||
|
# The namespace used for your flake, defaulting to "internal" if not set.
|
||||||
|
namespace,
|
||||||
|
# The system architecture for this host (eg. `x86_64-linux`).
|
||||||
|
system,
|
||||||
|
# The Snowfall Lib target for this system (eg. `x86_64-iso`).
|
||||||
|
target,
|
||||||
|
# A normalized name for the system target (eg. `iso`).
|
||||||
|
format,
|
||||||
|
# A boolean to determine whether this system is a virtual target using nixos-generators.
|
||||||
|
virtual,
|
||||||
|
# An attribute map of your defined hosts.
|
||||||
|
systems,
|
||||||
|
# All other arguments come from the system system.
|
||||||
|
config
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit pkgs;
|
||||||
|
installedPackages = lib.my-namespace.mkPackages pkgs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# inherit system;
|
||||||
|
imports = [
|
||||||
|
./configuration.nix
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
system.stateVersion = "24.05";
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.andreas = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Andreas";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
flatpak
|
||||||
|
gnome-software
|
||||||
|
soundwireserver
|
||||||
|
vscode
|
||||||
|
spotify
|
||||||
|
appimage-run
|
||||||
|
inputs.game-of-life.packages.x86_64-linux.default
|
||||||
|
inputs.nixos-cosmic
|
||||||
|
# thunderbird
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# lib.my-namespace.home.stream-tools.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
59010 #SoundWireServer
|
||||||
|
3389 #RDP
|
||||||
|
];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
# Set up system Packages
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
# wget
|
||||||
|
]
|
||||||
|
++ installedPackages.packages;
|
||||||
|
programs.nix-ld = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-ld-rs;
|
||||||
|
};
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
systemd.services.flatpak-repo = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.flatpak ];
|
||||||
|
script = ''
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
passwordAuthentication = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# services.xrdp.enable = true;
|
||||||
|
# services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
|
||||||
|
# services.xrdp.openFirewall = true;
|
||||||
|
|
||||||
|
|
||||||
|
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
|
||||||
|
# If no user is logged in, the machine will power down after 20 minutes.
|
||||||
|
systemd.targets.sleep.enable = false;
|
||||||
|
systemd.targets.suspend.enable = false;
|
||||||
|
systemd.targets.hibernate.enable = false;
|
||||||
|
systemd.targets.hybrid-sleep.enable = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user