Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a199e15e60 | ||
|
|
d9928885c8 | ||
|
|
f5a00999bd | ||
|
|
a32f0ee342 | ||
|
|
6cfc2b32a7 | ||
|
|
a8254832dd | ||
|
|
fa0dc92c7b | ||
|
|
0d35606184 | ||
|
|
c3473320bc | ||
|
|
cc9ffaf754 | ||
|
|
07c460e990 | ||
|
|
fc4f2e9779 | ||
|
|
a9f3d0f090 | ||
|
|
5091a8f7a5 | ||
|
|
d3f69117be | ||
|
|
3e2c2864d2 | ||
|
|
51626254b3 | ||
|
|
d6a224a466 | ||
|
|
180ecd08a7 | ||
|
|
18ad8f5a83 | ||
|
|
8525ee16e8 | ||
|
|
b96652db97 | ||
|
|
4ca2440280 | ||
|
|
4e86eedc2d | ||
|
|
e471b57883 | ||
|
|
67ca7276aa | ||
|
|
cdc335e842 | ||
|
|
465ef0b9b1 | ||
|
|
8a8488aa14 | ||
|
|
0c46f6e4b2 |
181
flake.lock
generated
181
flake.lock
generated
@@ -9,13 +9,14 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1656687988,
|
"lastModified": 1656687988,
|
||||||
"narHash": "sha256-2ywoy3wUvFAyxDTw7VPlz5TGh9mk/um2AWOjhJqJxNQ=",
|
"narHash": "sha256-2ywoy3wUvFAyxDTw7VPlz5TGh9mk/um2AWOjhJqJxNQ=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "master",
|
||||||
"rev": "7e85f62e40cd585ce81fa1f3debd5385bb0cad03",
|
"rev": "7e85f62e40cd585ce81fa1f3debd5385bb0cad03",
|
||||||
"revCount": 160,
|
"revCount": 160,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.dodsorf.as/Dandellion/NUR.git"
|
"url": "https://git.dodsorf.as/Dandellion/NUR.git"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
"ref": "master",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.dodsorf.as/Dandellion/NUR.git"
|
"url": "https://git.dodsorf.as/Dandellion/NUR.git"
|
||||||
}
|
}
|
||||||
@@ -126,13 +127,37 @@
|
|||||||
"url": "https://git.dodsorf.as/Dandellion/dotfiles.git"
|
"url": "https://git.dodsorf.as/Dandellion/dotfiles.git"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nur",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1659877975,
|
"lastModified": 1733312601,
|
||||||
"narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
|
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -178,17 +203,17 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726861934,
|
"lastModified": 1736178795,
|
||||||
"narHash": "sha256-lOzPDwktd+pwszUTbpUdQg6iCzInS11fHLfkjmnvJrM=",
|
"narHash": "sha256-mPdi8cgvIDYcgG3FRG7A4BOIMu2Jef96TPMnV00uXlM=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "546d921ec46735dbf876e36f4af8df1064d09432",
|
"rev": "fde738910de1fd8293535a6382c2f0c2749dd7c1",
|
||||||
"revCount": 78,
|
"revCount": 79,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.pvv.ntnu.no/Projects/grzegorz-clients"
|
"url": "https://git.pvv.ntnu.no/grzegorz/grzegorz-clients"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.pvv.ntnu.no/Projects/grzegorz-clients"
|
"url": "https://git.pvv.ntnu.no/grzegorz/grzegorz-clients"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"greg-clients_2": {
|
"greg-clients_2": {
|
||||||
@@ -220,16 +245,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733050161,
|
"lastModified": 1765605144,
|
||||||
"narHash": "sha256-lYnT+EYE47f5yY3KS/Kd4pJ6CO9fhCqumkYYkQ3TK20=",
|
"narHash": "sha256-RM2xs+1HdHxesjOelxoA3eSvXShC8pmBvtyTke4Ango=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "62d536255879be574ebfe9b87c4ac194febf47c5",
|
"rev": "90b62096f099b73043a747348c11dbfcfbdea949",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.11",
|
"ref": "release-25.11",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -336,11 +361,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713543440,
|
"lastModified": 1752054764,
|
||||||
"narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=",
|
"narHash": "sha256-Ob/HuUhANoDs+nvYqyTKrkcPXf4ZgXoqMTQoCK0RFgQ=",
|
||||||
"owner": "guibou",
|
"owner": "guibou",
|
||||||
"repo": "nixGL",
|
"repo": "nixGL",
|
||||||
"rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a",
|
"rev": "a8e1ce7d49a149ed70df676785b07f63288f53c5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -399,11 +424,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733217105,
|
"lastModified": 1762463231,
|
||||||
"narHash": "sha256-fc6jTzIwCIVWTX50FtW6AZpuukuQWSEbPiyg6ZRGWFY=",
|
"narHash": "sha256-hv1mG5j5PTbnWbtHHomzTus77pIxsc4x8VrMjc7+/YE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "cceee0a31d2f01bcc98b2fbd591327c06a4ea4f9",
|
"rev": "52113c4f5cfd1e823001310e56d9c8d0699a6226",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -431,16 +456,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733261153,
|
"lastModified": 1765762245,
|
||||||
"narHash": "sha256-eq51hyiaIwtWo19fPEeE0Zr2s83DYMKJoukNLgGGpek=",
|
"narHash": "sha256-3iXM/zTqEskWtmZs3gqNiVtRTsEjYAedIaLL0mSBsrk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b681065d0919f7eb5309a93cea2cfa84dec9aa88",
|
"rev": "c8cfcd6ccd422e41cc631a0b73ed4d5a925c393d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -507,13 +532,48 @@
|
|||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nur": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733417713,
|
"lastModified": 1751011381,
|
||||||
"narHash": "sha256-/3foD2ePFtms/swS2J77CbAepo1nQ4CHlRBpj1IR8t0=",
|
"narHash": "sha256-krGXKxvkBhnrSC/kGBmg5MyupUUT5R6IBCLEzx9jhMM=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "30e2e2857ba47844aa71991daa6ed1fc678bcbb7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762361079,
|
||||||
|
"narHash": "sha256-lz718rr1BDpZBYk7+G8cE6wee3PiBUpn8aomG/vLLiY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "ffcdcf99d65c61956d882df249a9be53e5902ea5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nur": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1751281595,
|
||||||
|
"narHash": "sha256-y0fShu8oxqjP+LNNZWvxQGdlLkZmnK75nNCe8jfIfN0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "6e671d63e6b1e29f31781b8dfef69b147b69ab77",
|
"rev": "f73c91ffeff4282beb786e4e3de0db037fe07969",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -563,7 +623,8 @@
|
|||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"unstable": "unstable",
|
"unstable": "unstable",
|
||||||
"wack-ctf": "wack-ctf",
|
"wack-ctf": "wack-ctf",
|
||||||
"wack-server-conf": "wack-server-conf"
|
"wack-server-conf": "wack-server-conf",
|
||||||
|
"warez": "warez"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
@@ -612,13 +673,49 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems": {
|
||||||
|
"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": [
|
||||||
|
"nur",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733222881,
|
||||||
|
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1733229606,
|
"lastModified": 1765644376,
|
||||||
"narHash": "sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE=",
|
"narHash": "sha256-yqHBL2wYGwjGL2GUF2w3tofWl8qO9tZEuI4wSqbCrtE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "566e53c2ad750c84f6d31f9ccb9d00f823165550",
|
"rev": "23735a82a828372c4ef92c660864e82fbe2f5fbe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -785,6 +882,24 @@
|
|||||||
"repo": "wack-server-conf",
|
"repo": "wack-server-conf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"warez": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_3"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1738103614,
|
||||||
|
"narHash": "sha256-EvaKn0vfvvX/rtRGFXim+JOQLLAr/1Y4igQrmnLI1CE=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "c3bb59ee5cc6d700f6edf98c65a853efa09993ef",
|
||||||
|
"revCount": 6,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pvv.ntnu.no/tnug/nix-warez"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.pvv.ntnu.no/tnug/nix-warez"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
76
flake.nix
76
flake.nix
@@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
description = "dandellion's home-manager profiles";
|
description = "dandellion's home-manager profiles";
|
||||||
|
|
||||||
# nixConfig.extra-substituters = ["https://cache.dodsorf.as"];
|
|
||||||
# nixConfig.exta-trusted-public-keys = "cache.dodsorf.as:FYKGadXTyI2ax8mirBTOjEqS/8PZKAWxiJVOBjESQXc=";
|
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager/release-24.11";
|
home-manager.url = "github:nix-community/home-manager/release-25.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
@@ -16,7 +13,7 @@
|
|||||||
|
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
|
||||||
dan.url = "git+https://git.dodsorf.as/Dandellion/NUR.git"; #"git+https://git.dodsorf.as/Dandellion/NUR";
|
dan.url = "git+https://git.dodsorf.as/Dandellion/NUR.git?ref=master"; #"git+https://git.dodsorf.as/Dandellion/NUR";
|
||||||
dan.inputs.nixpkgs.follows = "unstable";
|
dan.inputs.nixpkgs.follows = "unstable";
|
||||||
|
|
||||||
wack-server-conf.url = "github:WackAttackCTF/wack-server-conf";
|
wack-server-conf.url = "github:WackAttackCTF/wack-server-conf";
|
||||||
@@ -25,11 +22,10 @@
|
|||||||
wack-ctf.url = "github:WackAttackCTF/wack-ctf-flake";
|
wack-ctf.url = "github:WackAttackCTF/wack-ctf-flake";
|
||||||
wack-ctf.inputs.nixpkgs.follows = "nixpkgs";
|
wack-ctf.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
greg-clients.url = "git+https://git.pvv.ntnu.no/Projects/grzegorz-clients";
|
greg-clients.url = "git+https://git.pvv.ntnu.no/grzegorz/grzegorz-clients";
|
||||||
greg-clients.inputs.nixpkgs.follows = "unstable";
|
greg-clients.inputs.nixpkgs.follows = "unstable";
|
||||||
|
|
||||||
# helix.url = "github:helix-editor/helix";
|
warez.url = "git+https://git.pvv.ntnu.no/tnug/nix-warez";
|
||||||
# helix.inputs.nixpkgs.follows = "unstable";
|
|
||||||
|
|
||||||
nixgl.url = "github:guibou/nixGL";
|
nixgl.url = "github:guibou/nixGL";
|
||||||
nixgl.inputs.nixpkgs.follows = "nixpkgs";
|
nixgl.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -50,8 +46,9 @@
|
|||||||
# helix = inputs.helix.packages.${prev.system}.helix;
|
# helix = inputs.helix.packages.${prev.system}.helix;
|
||||||
wack = inputs.wack-ctf.packages.${prev.system}.wack;
|
wack = inputs.wack-ctf.packages.${prev.system}.wack;
|
||||||
})
|
})
|
||||||
nur.overlay
|
nur.overlays.default
|
||||||
nixgl.overlay
|
nixgl.overlays.default
|
||||||
|
inputs.warez.overlays.default
|
||||||
];
|
];
|
||||||
|
|
||||||
mkHome =
|
mkHome =
|
||||||
@@ -78,11 +75,11 @@
|
|||||||
|
|
||||||
mkHomes = machines: extraArgs: nixlib.genAttrs machines (machine: mkHome ({inherit machine; } // extraArgs));
|
mkHomes = machines: extraArgs: nixlib.genAttrs machines (machine: mkHome ({inherit machine; } // extraArgs));
|
||||||
|
|
||||||
allMachines = [ "laptop" "desktop" "headless" "pvv-terminal" ];
|
allMachines = [ "ayanami" "desktop" "headless" "pvv-terminal" "ikari" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
homeConfigurations = mkHomes [ "laptop" "headless" ] { }
|
homeConfigurations = mkHomes [ "ayanami" "headless" "ikari" ] { }
|
||||||
// mkHomes [ "desktop" ] { username = "dan"; }
|
// mkHomes [ "desktop" ] { username = "dan"; }
|
||||||
// mkHomes [ "pvv-terminal" ] { username = "danio"; homeDirectory = "/home/pvv/d/danio"; };
|
// mkHomes [ "pvv-terminal" ] { username = "danio"; homeDirectory = "/home/pvv/d/danio"; };
|
||||||
|
|
||||||
@@ -93,18 +90,65 @@
|
|||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = false;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.daniel = import ./home/machines/ayanami.nix;
|
||||||
|
home-manager.extraSpecialArgs = {
|
||||||
|
overlays = defaultOverlays;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
./hosts/ayanami/configuration.nix
|
./hosts/ayanami/configuration.nix
|
||||||
nixos-hardware.nixosModules.lenovo-thinkpad-l480
|
nixos-hardware.nixosModules.lenovo-thinkpad-p14s-amd-gen2
|
||||||
|
];
|
||||||
|
};
|
||||||
|
soryu-old = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./hosts/asuka/soryu-old/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
soryu = nixpkgs.lib.nixosSystem {
|
soryu = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/soryu/configuration.nix
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = false;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.daniel = import ./home/machines/soryu.nix;
|
||||||
|
home-manager.extraSpecialArgs = {
|
||||||
|
overlays = defaultOverlays;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
./hosts/asuka/soryu/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# langley = nixpkgs.lib.nixosSystem {
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# specialArgs = {
|
||||||
|
# inherit inputs;
|
||||||
|
# };
|
||||||
|
# modules = [
|
||||||
|
# ./hosts/asuka/langley/configuration.nix
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
ikari = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
./hosts/ikari/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
31
home/machines/ayanami.nix
Normal file
31
home/machines/ayanami.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ config, lib, pkgs, overlays, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
imports = [ ../profiles ];
|
||||||
|
|
||||||
|
machine = {
|
||||||
|
name = "Ayanami";
|
||||||
|
eth = "enp5s0";
|
||||||
|
wlan = "wlp3s0";
|
||||||
|
secondary-fs = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
profiles.base.enable = true;
|
||||||
|
profiles.base.plus = true;
|
||||||
|
profiles.xsession.enable = true;
|
||||||
|
profiles.audio.fancy = true;
|
||||||
|
profiles.zsh.enable = true;
|
||||||
|
|
||||||
|
profiles.games.enable = true;
|
||||||
|
|
||||||
|
profiles.timetracking.enable = true;
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
pkgs.unstable.osu-lazer-bin
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
}
|
||||||
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
profiles.games.enable = true;
|
profiles.games.enable = true;
|
||||||
|
|
||||||
|
profiles.timetracking.enable = true;
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.unstable.osu-lazer-bin
|
pkgs.unstable.osu-lazer-bin
|
||||||
];
|
];
|
||||||
|
|||||||
25
home/machines/ikari.nix
Normal file
25
home/machines/ikari.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ config, lib, pkgs, overlays, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
imports = [ ../profiles ];
|
||||||
|
|
||||||
|
machine = {
|
||||||
|
name = "ikari";
|
||||||
|
eth = "eno1";
|
||||||
|
wlan = null;
|
||||||
|
};
|
||||||
|
profiles.base.enable = true;
|
||||||
|
profiles.base.plus = true;
|
||||||
|
profiles.xsession.enable = true;
|
||||||
|
profiles.audio.fancy = true;
|
||||||
|
profiles.zsh.enable = true;
|
||||||
|
|
||||||
|
profiles.games.enable = true;
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
pkgs.unstable.osu-lazer
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -18,31 +18,14 @@
|
|||||||
profiles.xsession.enable = true;
|
profiles.xsession.enable = true;
|
||||||
profiles.zsh.enable = true;
|
profiles.zsh.enable = true;
|
||||||
|
|
||||||
|
profiles.games.enable = true;
|
||||||
|
|
||||||
|
profiles.timetracking.enable = true;
|
||||||
|
|
||||||
services.gammastep = {
|
services.gammastep = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dawnTime = "7:00-8:15";
|
dawnTime = "7:00-8:15";
|
||||||
duskTime = "21:30-22:30";
|
duskTime = "21:30-22:30";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.activitywatch = {
|
|
||||||
enable = true;
|
|
||||||
watchers = {
|
|
||||||
aw-watcher-afk = {
|
|
||||||
package = pkgs.activitywatch;
|
|
||||||
settings = {
|
|
||||||
timeout = 300;
|
|
||||||
poll_time = 2;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
aw-watcher-window = {
|
|
||||||
package = pkgs.activitywatch;
|
|
||||||
settings = {
|
|
||||||
poll_time = 1;
|
|
||||||
# exclude_title = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
profiles.games.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
31
home/machines/soryu.nix
Normal file
31
home/machines/soryu.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{ config, lib, pkgs, overlays, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = overlays;
|
||||||
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
imports = [ ../profiles ];
|
||||||
|
|
||||||
|
machine = {
|
||||||
|
name = "Soryu";
|
||||||
|
eth = "enp9s0";
|
||||||
|
wlan = null;
|
||||||
|
secondary-fs = null;
|
||||||
|
};
|
||||||
|
|
||||||
|
profiles.base.enable = true;
|
||||||
|
profiles.base.plus = true;
|
||||||
|
profiles.xsession.enable = true;
|
||||||
|
profiles.audio.fancy = true;
|
||||||
|
profiles.zsh.enable = true;
|
||||||
|
|
||||||
|
profiles.games.enable = true;
|
||||||
|
|
||||||
|
profiles.timetracking.enable = true;
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
pkgs.unstable.osu-lazer-bin
|
||||||
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
}
|
||||||
@@ -1,7 +1,25 @@
|
|||||||
{pkgs, config, lib, ...}:
|
{pkgs, config, lib, ...}:
|
||||||
let
|
let
|
||||||
cfg = config.profiles.audio;
|
cfg = config.profiles.audio;
|
||||||
audio-plugins = pkgs.symlinkJoin { name = "audio-plugins"; paths = [ pkgs.lsp-plugins pkgs.speech-denoiser ];};
|
# audio-plugins = pkgs.symlinkJoin {
|
||||||
|
# name = "audio-plugins";
|
||||||
|
# stripPrefix = "/lib";
|
||||||
|
# paths = [
|
||||||
|
# pkgs.lsp-plugins
|
||||||
|
# pkgs.rnnoise-plugin
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
audio-plugins = pkgs.buildEnv {
|
||||||
|
name = "audio-plugins";
|
||||||
|
paths = [
|
||||||
|
pkgs.lsp-plugins
|
||||||
|
# pkgs.calf
|
||||||
|
# pkgs.tal-plugins
|
||||||
|
pkgs.rnnoise-plugin
|
||||||
|
];
|
||||||
|
# pathsToLink = [ "/lib/lv2" "/lib/ladspa" "/lib/clap" "/lib/vst" "/lib/vst3" ];
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.profiles.audio = {
|
options.profiles.audio = {
|
||||||
|
|||||||
@@ -38,11 +38,12 @@ in
|
|||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
unstable.nix-output-monitor
|
nix-output-monitor
|
||||||
nix-top
|
nix-top
|
||||||
nix-index
|
nix-index
|
||||||
nix-tree
|
nix-tree
|
||||||
unstable.comma
|
# unstable.comma
|
||||||
|
nixd
|
||||||
|
|
||||||
openvpn
|
openvpn
|
||||||
|
|
||||||
@@ -80,8 +81,10 @@ in
|
|||||||
eza
|
eza
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
||||||
gregctl
|
# gregctl
|
||||||
wack
|
# wack
|
||||||
|
#
|
||||||
|
unstable.ollama
|
||||||
] ++ lib.optionals cfg.plus [
|
] ++ lib.optionals cfg.plus [
|
||||||
ffmpeg-full
|
ffmpeg-full
|
||||||
] ++ lib.optionals config.profiles.gui.enable [
|
] ++ lib.optionals config.profiles.gui.enable [
|
||||||
@@ -89,14 +92,13 @@ in
|
|||||||
sxiv
|
sxiv
|
||||||
eog
|
eog
|
||||||
|
|
||||||
dolphin
|
kdePackages.dolphin
|
||||||
plasma5Packages.dolphin-plugins
|
kdePackages.dolphin-plugins
|
||||||
ffmpegthumbs
|
kdePackages.ffmpegthumbs
|
||||||
plasma5Packages.kdegraphics-thumbnailers
|
kdePackages.kdegraphics-thumbnailers
|
||||||
plasma5Packages.kio
|
kdePackages.kio
|
||||||
plasma5Packages.kio-extras
|
kdePackages.kio-extras
|
||||||
krename
|
kdePackages.konsole # https://bugs.kde.org/show_bug.cgi?id=407990 reeee
|
||||||
konsole # https://bugs.kde.org/show_bug.cgi?id=407990 reeee
|
|
||||||
|
|
||||||
gedit
|
gedit
|
||||||
|
|
||||||
@@ -109,10 +111,10 @@ in
|
|||||||
libreoffice
|
libreoffice
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
kdenlive
|
kdePackages.kdenlive
|
||||||
frei0r
|
frei0r
|
||||||
audacity
|
audacity
|
||||||
inkscape
|
# inkscape
|
||||||
blender
|
blender
|
||||||
|
|
||||||
mkvtoolnix
|
mkvtoolnix
|
||||||
@@ -199,22 +201,43 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.vscode = {
|
programs.zed-editor = {
|
||||||
enable = config.profiles.gui.enable;
|
enable = config.profiles.gui.enable;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.unstable.zed-editor;
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = [
|
||||||
bbenoist.nix
|
"nix"
|
||||||
|
|
||||||
rust-lang.rust-analyzer
|
|
||||||
vadimcn.vscode-lldb
|
|
||||||
] ++ lib.optionals config.nixpkgs.config.allowUnfree [
|
|
||||||
ms-vsliveshare.vsliveshare
|
|
||||||
];
|
];
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"editor.insertSpaces" = false;
|
telemetry.metrics = false;
|
||||||
"terminal.integrated.fontFamily" = "MesloLGS NF";
|
telemetry.diagnostics = false;
|
||||||
|
features = {
|
||||||
|
copilot = false;
|
||||||
|
};
|
||||||
|
buffer_font_family = "MesloLGS NF";
|
||||||
|
base_keymap = "VSCode";
|
||||||
|
language_overrides = {
|
||||||
|
Rust = {
|
||||||
|
inlay_hints.enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# programs.vscode = {
|
||||||
|
# enable = config.profiles.gui.enable;
|
||||||
|
# package = pkgs.vscodium;
|
||||||
|
# extensions = with pkgs.vscode-extensions; [
|
||||||
|
# bbenoist.nix
|
||||||
|
# rust-lang.rust-analyzer
|
||||||
|
# vadimcn.vscode-lldb
|
||||||
|
# ] ++ lib.optionals config.nixpkgs.config.allowUnfree [
|
||||||
|
# ms-vsliveshare.vsliveshare
|
||||||
|
# ];
|
||||||
|
# userSettings = {
|
||||||
|
# "editor.insertSpaces" = false;
|
||||||
|
# "terminal.integrated.fontFamily" = "MesloLGS NF";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -313,7 +336,8 @@ in
|
|||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
GRZEGORZ_DEFAULT_API_BASE = "https://georg.pvv.ntnu.no/api";
|
GRZEGORZ_DEFAULT_API_BASE = "https://georg-backend.pvv.ntnu.no/api/";
|
||||||
|
OLLAMA_HOST="100.64.0.19";
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
|
|||||||
@@ -7,5 +7,6 @@
|
|||||||
./gui.nix
|
./gui.nix
|
||||||
./non-nixos.nix
|
./non-nixos.nix
|
||||||
./games
|
./games
|
||||||
|
./timetracking
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,13 +12,11 @@ in {
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fortune
|
fortune
|
||||||
lolcat
|
|
||||||
neofetch
|
|
||||||
pipes
|
|
||||||
] ++ lib.optionals config.profiles.gui.enable [
|
] ++ lib.optionals config.profiles.gui.enable [
|
||||||
steam
|
steam
|
||||||
|
|
||||||
unstable.prismlauncher
|
prismlauncher
|
||||||
|
fjordlauncher
|
||||||
# minetest
|
# minetest
|
||||||
# dwarf-fortress-packages.dwarf-fortress-full
|
# dwarf-fortress-packages.dwarf-fortress-full
|
||||||
# superTuxKart
|
# superTuxKart
|
||||||
|
|||||||
30
home/profiles/timetracking/default.nix
Normal file
30
home/profiles/timetracking/default.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{ config, lib, pkgs, overlays, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.profiles.timetracking;
|
||||||
|
in {
|
||||||
|
options.profiles.timetracking = {
|
||||||
|
enable = lib.mkEnableOption "doin timetracking";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.activitywatch = {
|
||||||
|
enable = true;
|
||||||
|
watchers = {
|
||||||
|
aw-watcher-afk = {
|
||||||
|
package = pkgs.activitywatch;
|
||||||
|
settings = {
|
||||||
|
timeout = 300;
|
||||||
|
poll_time = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
aw-watcher-window = {
|
||||||
|
package = pkgs.activitywatch;
|
||||||
|
settings = {
|
||||||
|
poll_time = 1;
|
||||||
|
# exclude_title = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -70,9 +70,9 @@ in
|
|||||||
"XF86AudioMicMute" = "exec --no-startup-id ${pkgs.pulseaudio}/bin/pactl set-source-mute 1 toggle";
|
"XF86AudioMicMute" = "exec --no-startup-id ${pkgs.pulseaudio}/bin/pactl set-source-mute 1 toggle";
|
||||||
|
|
||||||
# Georg volume controls
|
# Georg volume controls
|
||||||
"Shift+XF86AudioRaiseVolume" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} set-volume -- +5%";
|
# "Shift+XF86AudioRaiseVolume" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} set-volume -- +5%";
|
||||||
"Shift+XF86AudioLowerVolume" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} set-volume -- -5%";
|
# "Shift+XF86AudioLowerVolume" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} set-volume -- -5%";
|
||||||
"Shift+XF86AudioMute" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} toggle";
|
# "Shift+XF86AudioMute" = "exec --no-startup-id ${lib.getExe pkgs.gregctl} toggle";
|
||||||
|
|
||||||
"XF86MonBrightnessUp" = "exec --no-startup-id brightnessctl set +5%";
|
"XF86MonBrightnessUp" = "exec --no-startup-id brightnessctl set +5%";
|
||||||
"XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 5%-";
|
"XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 5%-";
|
||||||
@@ -147,11 +147,12 @@ in
|
|||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = {
|
theme = {
|
||||||
package = pkgs.breeze-gtk;
|
# package = pkgs.breeze-gtk;
|
||||||
|
package = pkgs.kdePackages.breeze-gtk;
|
||||||
name = "Breeze";
|
name = "Breeze";
|
||||||
};
|
};
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
package = pkgs.breeze-icons;
|
package = pkgs.kdePackages.breeze-icons;
|
||||||
name = "breeze";
|
name = "breeze";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -173,7 +174,7 @@ in
|
|||||||
pkgs.dmenu
|
pkgs.dmenu
|
||||||
|
|
||||||
pkgs.scrot
|
pkgs.scrot
|
||||||
pkgs.neofetch
|
# pkgs.neofetch
|
||||||
#pkgs.dan.colors
|
#pkgs.dan.colors
|
||||||
pkgs.xclip
|
pkgs.xclip
|
||||||
|
|
||||||
@@ -181,8 +182,8 @@ in
|
|||||||
|
|
||||||
pkgs.source-code-pro
|
pkgs.source-code-pro
|
||||||
|
|
||||||
pkgs.breeze-qt5
|
pkgs.kdePackages.breeze-gtk
|
||||||
pkgs.breeze-icons
|
pkgs.kdePackages.breeze-icons
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,29 +3,23 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.profiles.xsession.enable {
|
config = lib.mkIf config.profiles.xsession.enable {
|
||||||
|
|
||||||
home.file.kitty = {
|
programs.kitty = {
|
||||||
target = ".config/kitty/kitty.conf";
|
enable = true;
|
||||||
text = ''
|
font.name = "MesloLGS NF";
|
||||||
#term xterm-256color
|
font.size = 12;
|
||||||
font_family MesloLGS NF
|
keybindings = {
|
||||||
font_size 12.0
|
"ctrl+shift+c" = "copy_to_clipboard";
|
||||||
background_opacity 0.7
|
"ctrl+shift+v" = "paste_from_clipboard";
|
||||||
|
|
||||||
clear_all_shortcuts yes
|
"ctrl+plus" = "change_font_size all +2.0";
|
||||||
|
"ctrl+shift+plus" = "change_font_size all -2.0";
|
||||||
map ctrl+shift+c copy_to_clipboard
|
};
|
||||||
map ctrl+shift+v paste_from_clipboard
|
settings = {
|
||||||
|
"background_opacity" = 0.7;
|
||||||
|
};
|
||||||
|
|
||||||
map ctrl+plus change_font_size all +2.0
|
|
||||||
map ctrl+shift+plus change_font_size all -2.0
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.kitty
|
|
||||||
pkgs.ncurses.dev
|
pkgs.ncurses.dev
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,10 +26,10 @@
|
|||||||
SYSTEMD_NSPAWN_TMPFS_TMP = "0";
|
SYSTEMD_NSPAWN_TMPFS_TMP = "0";
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
CPUQuota = "300%";
|
CPUQuota = "1400%";
|
||||||
MemoryHigh = "29G";
|
MemoryHigh = "90G";
|
||||||
MemoryMax = "30G";
|
MemoryMax = "94G";
|
||||||
MemorySwapMax = "50G";
|
MemorySwapMax = "40G";
|
||||||
ExecStart = "systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i -D /mnt/human/machines/ubuntu-ai";
|
ExecStart = "systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i -D /mnt/human/machines/ubuntu-ai";
|
||||||
};
|
};
|
||||||
# overrideStrategy = "asDropin";
|
# overrideStrategy = "asDropin";
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
memoryMax = 32 * 1024 * 1024 * 1024; # 16 GB ZRAM
|
memoryMax = 96 * 1024 * 1024 * 1024; # 96 GB ZRAM
|
||||||
};
|
};
|
||||||
|
|
||||||
disabledModules = [
|
disabledModules = [
|
||||||
71
hosts/asuka/soryu-old/wack.nix
Normal file
71
hosts/asuka/soryu-old/wack.nix
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 1337 ];
|
||||||
|
|
||||||
|
networking.nat.forwardPorts = [
|
||||||
|
{
|
||||||
|
destination = "${config.containers.ireul.hostAddress}:1337";
|
||||||
|
proto = "tcp";
|
||||||
|
sourcePort = 1337;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
containers.ireul = {
|
||||||
|
bindMounts."/wordlists" = {
|
||||||
|
hostPath = "/mnt/human/wordlists";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
|
privateNetwork = true;
|
||||||
|
hostAddress = "192.168.10.1";
|
||||||
|
localAddress = "192.168.10.2";
|
||||||
|
forwardPorts = [
|
||||||
|
{ containerPort = 1337;
|
||||||
|
hostPort = 1337;
|
||||||
|
protocol = "tcp";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
bindMounts."/dev/dri" = {
|
||||||
|
hostPath = "/dev/dri";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
|
bindMounts."/dev/kfd" = {
|
||||||
|
hostPath = "/dev/kfd";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
|
bindMounts."/run/opengl-driver" = {
|
||||||
|
hostPath = "/run/opengl-driver";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
allowedDevices = [
|
||||||
|
{ node = "/dev/dri/card0"; modifier = "rw"; }
|
||||||
|
{ node = "/dev/dri/renderD128"; modifier = "rw"; }
|
||||||
|
{ node = "/dev/kfd"; modifier = "rw"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
config = { config, pkgs, ... }: {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
services.openssh.ports = [ 1337 ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
hashcat
|
||||||
|
hashcat-utils
|
||||||
|
john
|
||||||
|
|
||||||
|
kitty.terminfo
|
||||||
|
];
|
||||||
|
|
||||||
|
users.groups.video.members = builtins.attrNames config.users.users;
|
||||||
|
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
imports = [ (inputs.wack-server-conf + /users/default.nix) ];
|
||||||
|
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
36
hosts/asuka/soryu/ai-container.nix
Normal file
36
hosts/asuka/soryu/ai-container.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
systemd.nspawn.ubuntu-ai = {
|
||||||
|
execConfig = {
|
||||||
|
Boot = true;
|
||||||
|
};
|
||||||
|
networkConfig = {
|
||||||
|
Private = false;
|
||||||
|
};
|
||||||
|
filesConfig = {
|
||||||
|
BindReadOnly = [
|
||||||
|
"/etc/resolv.conf:/etc/resolv.conf"
|
||||||
|
];
|
||||||
|
Bind = [
|
||||||
|
"/dev/dri:/dev/dri"
|
||||||
|
"/dev/kfd:/dev/kfd"
|
||||||
|
"/mnt/human/sd:/sd:idmap"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."systemd-nspawn@ubuntu-ai" = {
|
||||||
|
environment = {
|
||||||
|
SYSTEMD_NSPAWN_TMPFS_TMP = "0";
|
||||||
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
CPUQuota = "1400%";
|
||||||
|
MemoryHigh = "90G";
|
||||||
|
MemoryMax = "94G";
|
||||||
|
MemorySwapMax = "40G";
|
||||||
|
ExecStart = "systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=%i -D /mnt/human/machines/ubuntu-ai";
|
||||||
|
};
|
||||||
|
# overrideStrategy = "asDropin";
|
||||||
|
};
|
||||||
|
}
|
||||||
226
hosts/asuka/soryu/configuration.nix
Normal file
226
hosts/asuka/soryu/configuration.nix
Normal file
@@ -0,0 +1,226 @@
|
|||||||
|
# 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, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
# ./wack.nix
|
||||||
|
./ollama.nix
|
||||||
|
./ai-container.nix
|
||||||
|
../../common/builder.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
rocmSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
netbootxyz = { enable = true; sortKey = "y_netbootxyz"; };
|
||||||
|
edk2-uefi-shell = { enable = true; sortKey = "z_edk2-uefi-shell"; };
|
||||||
|
extraEntries = {
|
||||||
|
"old-soryuu.conf" = ''
|
||||||
|
title Old Soryuu;
|
||||||
|
efi /efi/edk2-uefi-shell/shell.efi
|
||||||
|
options -nointerrupt -nomap -noversion HD1b65535a:\EFI\systemd\systemd-bootx64.efi
|
||||||
|
sort-key o_soryuu-old
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [ "ip=dhcp" ];
|
||||||
|
boot.initrd.availableKernelModules = [ "r8169" ];
|
||||||
|
boot.initrd.network.enable = true;
|
||||||
|
boot.initrd.network.ssh = {
|
||||||
|
enable = true;
|
||||||
|
port = 22;
|
||||||
|
authorizedKeys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp8iMOx3eTiG5AmDh2KjKcigf7xdRKn9M7iZQ4RqP0np0UN2NUbu+VAMJmkWFyi3JpxmLuhszU0F1xY+3qM3ARduy1cs89B/bBE85xlOeYhcYVmpcgPR5xduS+TuHTBzFAgp+IU7/lgxdjcJ3PH4K0ruGRcX1xrytmk/vdY8IeSk3GVWDRrRbH6brO4cCCFjX0zJ7G6hBQueTPQoOy3jrUvgpRkzZY4ZCuljXtxbuX5X/2qWAkp8ca0iTQ5FzNA5JUyj+DWeEzjIEz6GrckOdV2LjWpT9+CtOqoPZOUudE1J9mJk4snNlMQjE06It7Kr50bpwoPqnxjo7ZjlHFLezl"
|
||||||
|
];
|
||||||
|
hostKeys = [
|
||||||
|
"/etc/secrets/initrd/ssh_host_rsa_key"
|
||||||
|
"/etc/secrets/initrd/ssh_host_ed25519_key"
|
||||||
|
];
|
||||||
|
shell = "/bin/cryptsetup-askpass";
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
# programs.adb.enable = true;
|
||||||
|
|
||||||
|
systemd.enableEmergencyMode = false;
|
||||||
|
|
||||||
|
networking.hostName = "soryu";
|
||||||
|
networking.extraHosts = ''
|
||||||
|
127.0.0.1 modules-cdn.eac-prod.on.epicgames.com #Star Citizen EAC workaround
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Star Citizen resource limits
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.max_map_count" = 16777216;
|
||||||
|
"fs.file-max" = 524288;
|
||||||
|
};
|
||||||
|
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
memoryMax = 96 * 1024 * 1024 * 1024; # 96 GB ZRAM
|
||||||
|
};
|
||||||
|
|
||||||
|
services.resolved.enable = true;
|
||||||
|
services.resolved.dnssec = "false";
|
||||||
|
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
services.murmur = {
|
||||||
|
enable = true;
|
||||||
|
# registerName = "DODSORFAS";
|
||||||
|
welcometext = "Dans PC at singsaker smh backup mumble server";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = false;
|
||||||
|
dedicatedServer.openFirewall = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
networking.firewall.interfaces."tailscale0" = let
|
||||||
|
all = { from = 0; to = 65535; };
|
||||||
|
in {
|
||||||
|
allowedUDPPortRanges = [ all ];
|
||||||
|
allowedTCPPortRanges = [ all ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
console.keyMap = "no-latin1";
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wget vim git
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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 = true;
|
||||||
|
networking.firewall.allowedTCPPorts = [ config.services.murmur.port ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ config.services.murmur.port ];
|
||||||
|
|
||||||
|
|
||||||
|
security.rtkit.enable = false; # Enable again when mumble is fixed
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
extraLv2Packages = [ pkgs.rnnoise-plugin.lv2 ];
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.graphics.enable32Bit = true;
|
||||||
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
|
libva rocmPackages.clr.icd
|
||||||
|
];
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules =
|
||||||
|
let
|
||||||
|
rocmEnv = pkgs.symlinkJoin {
|
||||||
|
name = "rocm-combined";
|
||||||
|
paths = with pkgs.rocmPackages; [
|
||||||
|
rocblas
|
||||||
|
hipblas
|
||||||
|
clr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in [
|
||||||
|
"L+ /opt/rocm - - - - ${rocmEnv}"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.displayManager = {
|
||||||
|
defaultSession = "xsession";
|
||||||
|
session = [
|
||||||
|
{ manage = "desktop";
|
||||||
|
name = "xsession";
|
||||||
|
start = "exec $HOME/.xsession";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.xserver.xkb.layout = "no";
|
||||||
|
# services.xserver.xkbOptions = "eurosign:e";
|
||||||
|
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "nb_NO.UTF-8";
|
||||||
|
extraLocales = [ "en_US.UTF-8/UTF-8" "nn_NO.UTF-8/UTF-8" ];
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_COLLATE = "nb_NO.UTF-8";
|
||||||
|
LC_MESSAGES = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.displayManager.lightdm.enable = true;
|
||||||
|
services.xserver.videoDrivers = ["amdgpu"];
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
# networking.nameservers = lib.mkForce [ "192.168.0.25" ];
|
||||||
|
|
||||||
|
# services.ipfs.enable = true;
|
||||||
|
# services.ipfs.gatewayAddress = "/ip4/127.0.0.1/tcp/5002";
|
||||||
|
|
||||||
|
nix.trustedUsers = [ "daniel" ];
|
||||||
|
nix.extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
|
||||||
|
users.users.daniel = {
|
||||||
|
isNormalUser = true;
|
||||||
|
uid = 1000;
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "docker" "video" "libvirtd" ];
|
||||||
|
initialPassword = "Abc123";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
services.dbus.packages = with pkgs; [ dconf ];
|
||||||
|
|
||||||
|
# This value determines the NixOS release with which your system is to be
|
||||||
|
# compatible, in order to avoid breaking some software such as database
|
||||||
|
# servers. You should change this only after NixOS release notes say you
|
||||||
|
# should.
|
||||||
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
}
|
||||||
56
hosts/asuka/soryu/hardware-configuration.nix
Normal file
56
hosts/asuka/soryu/hardware-configuration.nix
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
# 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 = [ "nvme" "xhci_pci" "ahci" "thunderbolt" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."crypted-main".device = "/dev/disk/by-uuid/2f59c91a-6765-439a-bc8d-6a84d662ba0c";
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a1aec49d-4455-44e6-b69a-2576598b8749";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=root" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a1aec49d-4455-44e6-b69a-2576598b8749";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=home" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "/dev/disk/by-uuid/a1aec49d-4455-44e6-b69a-2576598b8749";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=nix" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/2285-60E9";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ { device = "/dev/disk/by-partlabel/swap"; randomEncryption.enable = true; } ];
|
||||||
|
|
||||||
|
# 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.docker0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp10s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
29
hosts/asuka/soryu/ollama.nix
Normal file
29
hosts/asuka/soryu/ollama.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = "rocm";
|
||||||
|
package = inputs.unstable.legacyPackages.x86_64-linux.ollama;
|
||||||
|
rocmOverrideGfx = "10.3.0";
|
||||||
|
environmentVariables = {
|
||||||
|
ROCR_VISIBLE_DEVICES = "GPU-5ecd14c0d670740b";
|
||||||
|
};
|
||||||
|
host = "100.64.0.19";
|
||||||
|
loadModels = [
|
||||||
|
"gemma3:4b"
|
||||||
|
"gemma3:12b"
|
||||||
|
"gemma3:27b"
|
||||||
|
"deepseek-r1:7b"
|
||||||
|
"deepseek-r1:14b"
|
||||||
|
"qwq:32b"
|
||||||
|
"codestral:22b"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.ollama = {
|
||||||
|
serviceConfig = {
|
||||||
|
SupplementaryGroups = [ "video" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
261
hosts/ayanami-old/configuration.nix
Normal file
261
hosts/ayanami-old/configuration.nix
Normal file
@@ -0,0 +1,261 @@
|
|||||||
|
#n 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
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hosts = {
|
||||||
|
# "10.10.111.103" = [ "snowbell.htb" "legacy.snowbell.htb" "management.snowbell.htb" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.restic.backups."main" = {
|
||||||
|
repositoryFile = "/root/restic-main-repo";
|
||||||
|
passwordFile = "/root/restic-main-password";
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-last 2"
|
||||||
|
"--keep-within 3d"
|
||||||
|
"--keep-daily 7"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 5"
|
||||||
|
];
|
||||||
|
paths = [
|
||||||
|
"/home/daniel"
|
||||||
|
"/var/lib"
|
||||||
|
];
|
||||||
|
exclude = [
|
||||||
|
"/home/*/.cache"
|
||||||
|
|
||||||
|
"/home/*/.local/share/Trash"
|
||||||
|
|
||||||
|
"/home/*/.cargo"
|
||||||
|
|
||||||
|
"/home/*/.local/share/Steam/*"
|
||||||
|
"!/home/*/.local/share/Steam/compatdata"
|
||||||
|
|
||||||
|
"/home/*/mnt"
|
||||||
|
];
|
||||||
|
extraBackupArgs = [
|
||||||
|
"--one-file-system"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
virtualisation.podman.enable = true;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
programs.wireshark.enable = true;
|
||||||
|
programs.wireshark.package = pkgs.wireshark;
|
||||||
|
|
||||||
|
services.mysql.enable = true;
|
||||||
|
services.mysql.package = pkgs.mariadb;
|
||||||
|
services.mysql.settings.mysqld = {
|
||||||
|
bind-address = "127.0.0.1";
|
||||||
|
port = 3306;
|
||||||
|
};
|
||||||
|
services.mysql.ensureUsers = [
|
||||||
|
{
|
||||||
|
name = "daniel";
|
||||||
|
ensurePermissions = {
|
||||||
|
"lab1.*" = "ALL PRIVILEGES";
|
||||||
|
"lab2.*" = "ALL PRIVILEGES";
|
||||||
|
"lab3.*" = "ALL PRIVILEGES";
|
||||||
|
"lab4.*" = "ALL PRIVILEGES";
|
||||||
|
"lab5.*" = "ALL PRIVILEGES";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
# services.create_ap.enable = false;
|
||||||
|
# services.create_ap.settings = {
|
||||||
|
# INTERNET_IFACE = "enp0s31f6";
|
||||||
|
# PASSPHRASE = "12345678";
|
||||||
|
# SSID = "DOTA2ERBEST";
|
||||||
|
# WIFI_IFACE = "wlp5s0";
|
||||||
|
# MAC_FILTER = 0;
|
||||||
|
# HIDDEN = 0;
|
||||||
|
# };
|
||||||
|
|
||||||
|
boot.kernelModules = [ "v4l2loopback" ];
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "ayanami"; # Define your hostname.
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
services.blueman.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||||
|
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||||
|
# replicates the default behaviour.
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.interfaces.enp0s31f6.useDHCP = false;
|
||||||
|
networking.interfaces.wlp5s0.useDHCP = false;
|
||||||
|
|
||||||
|
services.avahi.enable = false;
|
||||||
|
|
||||||
|
# services.atftpd = {
|
||||||
|
# enable = false;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "nb_NO.UTF-8/UTF-8" ];
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_TIME = "nb_NO.UTF-8";
|
||||||
|
LC_PAPER = "nb_NO.UTF-8";
|
||||||
|
LC_NAME = "nb_NO.UTF-8";
|
||||||
|
LC_ADDRESS = "nb_NO.UTF-8";
|
||||||
|
LC_TELEPHONE = "nb_NO.UTF-8";
|
||||||
|
LC_MEASUREMENT = "nb_NO.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
||||||
|
};
|
||||||
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
|
keyMap = "no-latin1";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.displayManager.lightdm.enable = true;
|
||||||
|
services.displayManager.defaultSession = "xsession";
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.displayManager = {
|
||||||
|
session = [
|
||||||
|
{
|
||||||
|
manage = "desktop";
|
||||||
|
name = "xsession";
|
||||||
|
start = "exec $HOME/.xsession";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Disable cups we will just not print anything :))
|
||||||
|
services.printing.enable = false;
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [ libva ];
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
services.libinput.enable = true;
|
||||||
|
services.xserver.xkb.layout = "no";
|
||||||
|
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.daniel = {
|
||||||
|
isNormalUser = true;
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "wireshark" "libvirtd" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
git
|
||||||
|
wget
|
||||||
|
virt-manager
|
||||||
|
podman-compose
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
services.dbus.packages = with pkgs; [ pkgs.dconf ];
|
||||||
|
|
||||||
|
services.openssh.enable = true;
|
||||||
|
services.openssh.openFirewall = false;
|
||||||
|
|
||||||
|
networking.firewall.interfaces."tailscale0" = let
|
||||||
|
all = { from = 0; to = 65535; };
|
||||||
|
in {
|
||||||
|
allowedUDPPortRanges = [ all ];
|
||||||
|
allowedTCPPortRanges = [ all ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
networking.firewall.allowedTCPPorts = [ 69 8010 9090 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 69 8010 9090 ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "daniel" ];
|
||||||
|
|
||||||
|
nix.buildMachines = [
|
||||||
|
{ hostName = "soryu";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
maxJobs = 16;
|
||||||
|
supportedFeatures = [ "big-parallel" ];
|
||||||
|
speedFactor = 66317;
|
||||||
|
}
|
||||||
|
# { hostName = "bob.pvv.ntnu.no";
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# maxJobs = 12;
|
||||||
|
# supportedFeatures = [ "big-parallel" ];
|
||||||
|
# speedFactor = 129270;
|
||||||
|
# }
|
||||||
|
# { hostName = "bolle.pbsds.net";
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# maxJobs = 6;
|
||||||
|
# speedFactor = 12857;
|
||||||
|
# }
|
||||||
|
# { hostName = "garp.pbsds.net";
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# maxJobs = 4;
|
||||||
|
# # i7-6700
|
||||||
|
# speedFactor = 8088;
|
||||||
|
# }
|
||||||
|
# { hostName = "lilith";
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# maxJobs = 6;
|
||||||
|
# #speedFactor = 13199;
|
||||||
|
# speedFactor = 6000;
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# hostName = "isvegg.pvv.ntnu.no";
|
||||||
|
# system = "x86_64-linux";
|
||||||
|
# maxJobs = 4;
|
||||||
|
# speedFactor = 4961;
|
||||||
|
# supportedFeatures = [ "big-parallel" ];
|
||||||
|
# mandatoryFeatures = [ ];
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
nix.extraOptions = ''
|
||||||
|
builders-use-substitutes = true
|
||||||
|
experimental-features = nix-command flakes impure-derivations ca-derivations
|
||||||
|
'';
|
||||||
|
|
||||||
|
# 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 = "23.11"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
61
hosts/ayanami-old/hardware-configuration.nix
Normal file
61
hosts/ayanami-old/hardware-configuration.nix
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# 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" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=root" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."enc" = {
|
||||||
|
allowDiscards = true;
|
||||||
|
device = "/dev/disk/by-uuid/27c2e6ae-d9ec-4bbd-9ebe-6ec2e63dd139";
|
||||||
|
};
|
||||||
|
fileSystems."/home" =
|
||||||
|
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=home" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/nix" =
|
||||||
|
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=nix" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/persist" =
|
||||||
|
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=persist" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/log" =
|
||||||
|
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=log" ];
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/503B-1BC9";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/28c04c57-b026-471f-a7bf-366cbc102b78"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -1,162 +1,97 @@
|
|||||||
#n Edit this configuration file to define what should be installed on your system.
|
# Edit this configuration file to define what should be installed on
|
||||||
# Help is available in the configuration.nix(5) man page and in the NixOS manual
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hosts = {
|
|
||||||
# "10.10.111.103" = [ "snowbell.htb" "legacy.snowbell.htb" "management.snowbell.htb" ];
|
services.restic.backups."main" = {
|
||||||
|
repositoryFile = "/root/restic-main-repo";
|
||||||
|
passwordFile = "/root/restic-main-password";
|
||||||
|
pruneOpts = [
|
||||||
|
"-keep-tag keep"
|
||||||
|
"--keep-last 2"
|
||||||
|
"--keep-within 3d"
|
||||||
|
"--keep-daily 7"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 5"
|
||||||
|
];
|
||||||
|
paths = [
|
||||||
|
"/home/daniel"
|
||||||
|
"/var/lib"
|
||||||
|
];
|
||||||
|
exclude = [
|
||||||
|
"/home/*/.cache"
|
||||||
|
|
||||||
|
"/home/*/.local/share/Trash"
|
||||||
|
|
||||||
|
"/home/*/.cargo"
|
||||||
|
|
||||||
|
"!/home/*/.local/share/Steam/compatdata"
|
||||||
|
"/home/*/.local/share/Steam/*"
|
||||||
|
|
||||||
|
"/home/*/mnt"
|
||||||
|
];
|
||||||
|
extraBackupArgs = [
|
||||||
|
"--one-file-system"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
virtualisation.podman.enable = true;
|
nixpkgs.config = {
|
||||||
virtualisation.libvirtd.enable = true;
|
allowUnfree = true;
|
||||||
programs.dconf.enable = true;
|
rocmSupport = true;
|
||||||
|
};
|
||||||
programs.wireshark.enable = true;
|
|
||||||
programs.wireshark.package = pkgs.wireshark;
|
|
||||||
|
|
||||||
# services.mysql.enable = true;
|
|
||||||
# services.mysql.package = pkgs.mariadb;
|
|
||||||
# services.mysql.settings.mysqld = {
|
|
||||||
# bind-address = "127.0.0.1";
|
|
||||||
# port = 3306;
|
|
||||||
# };
|
|
||||||
# services.mysql.ensureUsers = [
|
|
||||||
# {
|
|
||||||
# name = "daniel";
|
|
||||||
# ensurePermissions = {
|
|
||||||
# "lab1.*" = "ALL PRIVILEGES";
|
|
||||||
# "lab2.*" = "ALL PRIVILEGES";
|
|
||||||
# "lab3.*" = "ALL PRIVILEGES";
|
|
||||||
# "lab4.*" = "ALL PRIVILEGES";
|
|
||||||
# "lab5.*" = "ALL PRIVILEGES";
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
|
|
||||||
# services.create_ap.enable = false;
|
|
||||||
# services.create_ap.settings = {
|
|
||||||
# INTERNET_IFACE = "enp0s31f6";
|
|
||||||
# PASSPHRASE = "12345678";
|
|
||||||
# SSID = "DOTA2ERBEST";
|
|
||||||
# WIFI_IFACE = "wlp5s0";
|
|
||||||
# MAC_FILTER = 0;
|
|
||||||
# HIDDEN = 0;
|
|
||||||
# };
|
|
||||||
|
|
||||||
boot.kernelModules = [ "v4l2loopback" ];
|
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
netbootxyz = { enable = true; sortKey = "y_netbootxyz"; };
|
||||||
|
edk2-uefi-shell = { enable = true; sortKey = "z_edk2-uefi-shell"; };
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "ayanami"; # Define your hostname.
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
|
# programs.adb.enable = true;
|
||||||
|
|
||||||
|
systemd.enableEmergencyMode = false;
|
||||||
|
|
||||||
|
networking.hostName = "ayanami";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
networking.useDHCP = false;
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
services.blueman.enable = true;
|
|
||||||
|
|
||||||
# Set your time zone.
|
zramSwap = {
|
||||||
time.timeZone = "Europe/Oslo";
|
enable = true;
|
||||||
|
memoryMax = 24 * 1024 * 1024 * 1024; # 24 GB ZRAM
|
||||||
|
};
|
||||||
|
|
||||||
|
services.resolved.enable = true;
|
||||||
|
services.resolved.dnssec = "false";
|
||||||
|
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = false;
|
||||||
|
dedicatedServer.openFirewall = false;
|
||||||
|
};
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
|
||||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
|
||||||
# replicates the default behaviour.
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.enp0s31f6.useDHCP = false;
|
|
||||||
networking.interfaces.wlp5s0.useDHCP = false;
|
|
||||||
|
|
||||||
services.avahi.enable = false;
|
|
||||||
|
|
||||||
# services.atftpd = {
|
|
||||||
# enable = false;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "nb_NO.UTF-8/UTF-8" ];
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_TIME = "nb_NO.UTF-8";
|
|
||||||
LC_PAPER = "nb_NO.UTF-8";
|
|
||||||
LC_NAME = "nb_NO.UTF-8";
|
|
||||||
LC_ADDRESS = "nb_NO.UTF-8";
|
|
||||||
LC_TELEPHONE = "nb_NO.UTF-8";
|
|
||||||
LC_MEASUREMENT = "nb_NO.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
|
||||||
};
|
|
||||||
console = {
|
|
||||||
font = "Lat2-Terminus16";
|
|
||||||
keyMap = "no-latin1";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.displayManager.lightdm.enable = true;
|
|
||||||
services.displayManager.defaultSession = "xsession";
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.xserver.displayManager = {
|
|
||||||
session = [
|
|
||||||
{
|
|
||||||
manage = "desktop";
|
|
||||||
name = "xsession";
|
|
||||||
start = "exec $HOME/.xsession";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Disable cups we will just not print anything :))
|
|
||||||
services.printing.enable = false;
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
jack.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.opengl.driSupport32Bit = true;
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [ libva ];
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
services.libinput.enable = true;
|
|
||||||
services.xserver.xkb.layout = "no";
|
|
||||||
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.daniel = {
|
|
||||||
isNormalUser = true;
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
extraGroups = [ "wheel" "networkmanager" "wireshark" "libvirtd" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vim
|
|
||||||
git
|
|
||||||
wget
|
|
||||||
virt-manager
|
|
||||||
podman-compose
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
services.dbus.packages = with pkgs; [ pkgs.dconf ];
|
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
services.openssh.openFirewall = false;
|
|
||||||
|
|
||||||
networking.firewall.interfaces."tailscale0" = let
|
networking.firewall.interfaces."tailscale0" = let
|
||||||
all = { from = 0; to = 65535; };
|
all = { from = 0; to = 65535; };
|
||||||
in {
|
in {
|
||||||
@@ -164,78 +99,146 @@
|
|||||||
allowedTCPPortRanges = [ all ];
|
allowedTCPPortRanges = [ all ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
console.keyMap = "no-latin1";
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wget vim git
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
services.openssh.openFirewall = false;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 69 8010 9090 ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
networking.firewall.allowedUDPPorts = [ 69 8010 9090 ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
networking.firewall.enable = true;
|
||||||
|
networking.firewall.allowedTCPPorts = [ ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ ];
|
||||||
|
|
||||||
nix.settings.trusted-users = [ "daniel" ];
|
|
||||||
|
|
||||||
|
security.rtkit.enable = false; # Enable again when mumble is fixed
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
extraLv2Packages = [ pkgs.rnnoise-plugin.lv2 ];
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
hardware.graphics.enable32Bit = true;
|
||||||
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
|
libva rocmPackages.clr.icd
|
||||||
|
];
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules =
|
||||||
|
let
|
||||||
|
rocmEnv = pkgs.symlinkJoin {
|
||||||
|
name = "rocm-combined";
|
||||||
|
paths = with pkgs.rocmPackages; [
|
||||||
|
rocblas
|
||||||
|
hipblas
|
||||||
|
clr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in [
|
||||||
|
"L+ /opt/rocm - - - - ${rocmEnv}"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.displayManager = {
|
||||||
|
defaultSession = "xsession";
|
||||||
|
session = [
|
||||||
|
{ manage = "desktop";
|
||||||
|
name = "xsession";
|
||||||
|
start = "exec $HOME/.xsession";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.xserver.xkb.layout = "no";
|
||||||
|
# services.xserver.xkbOptions = "eurosign:e";
|
||||||
|
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "nb_NO.UTF-8";
|
||||||
|
extraLocales = [ "en_US.UTF-8/UTF-8" "nn_NO.UTF-8/UTF-8" ];
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_COLLATE = "nb_NO.UTF-8";
|
||||||
|
LC_MESSAGES = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.displayManager.lightdm.enable = true;
|
||||||
|
services.xserver.videoDrivers = ["amdgpu"];
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
# networking.nameservers = lib.mkForce [ "192.168.0.25" ];
|
||||||
|
|
||||||
|
# services.ipfs.enable = true;
|
||||||
|
# services.ipfs.gatewayAddress = "/ip4/127.0.0.1/tcp/5002";
|
||||||
|
|
||||||
|
nix.distributedBuilds = true;
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
# { hostName = "bob.pvv.ntnu.no";
|
{ hostName = "soryu";
|
||||||
|
system = "x86_64-linux";
|
||||||
|
maxJobs = 16;
|
||||||
|
supportedFeatures = [ "big-parallel" ];
|
||||||
|
speedFactor = 66317;
|
||||||
|
}
|
||||||
|
# { hostName = "bolle.pbsds.net";
|
||||||
# system = "x86_64-linux";
|
# system = "x86_64-linux";
|
||||||
# maxJobs = 12;
|
# maxJobs = 6;
|
||||||
# supportedFeatures = [ "big-parallel" ];
|
# speedFactor = 12857;
|
||||||
# speedFactor = 129270;
|
|
||||||
# }
|
# }
|
||||||
{ hostName = "bolle.pbsds.net";
|
# { hostName = "garp.pbsds.net";
|
||||||
system = "x86_64-linux";
|
|
||||||
maxJobs = 6;
|
|
||||||
speedFactor = 12857;
|
|
||||||
}
|
|
||||||
{ hostName = "garp.pbsds.net";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
maxJobs = 4;
|
|
||||||
# i7-6700
|
|
||||||
speedFactor = 8088;
|
|
||||||
}
|
|
||||||
{ hostName = "lilith";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
# if the builder supports building for multiple architectures,
|
|
||||||
# replace the previous line by, e.g.,
|
|
||||||
# systems = ["x86_64-linux" "aarch64-linux"];
|
|
||||||
maxJobs = 6;
|
|
||||||
#speedFactor = 13199;
|
|
||||||
speedFactor = 6000;
|
|
||||||
supportedFeatures = [ ];
|
|
||||||
mandatoryFeatures = [ ];
|
|
||||||
}
|
|
||||||
{ hostName = "desktop";
|
|
||||||
system = "x86_64-linux";
|
|
||||||
maxJobs = 4;
|
|
||||||
#speedFactor = 8066;
|
|
||||||
speedFactor = 4000;
|
|
||||||
supportedFeatures = [ ];
|
|
||||||
mandatoryFeatures = [ ];
|
|
||||||
}
|
|
||||||
# { hostName = "sachiel";
|
|
||||||
# system = "x86_64-linux";
|
|
||||||
# maxJobs = 1;
|
|
||||||
# #speedfactor =
|
|
||||||
# }
|
|
||||||
# {
|
|
||||||
# hostName = "isvegg.pvv.ntnu.no";
|
|
||||||
# system = "x86_64-linux";
|
# system = "x86_64-linux";
|
||||||
# maxJobs = 4;
|
# maxJobs = 4;
|
||||||
# speedFactor = 4961;
|
# # i7-6700
|
||||||
# supportedFeatures = [ "big-parallel" ];
|
# speedFactor = 8088;
|
||||||
# mandatoryFeatures = [ ];
|
|
||||||
# }
|
# }
|
||||||
];
|
];
|
||||||
nix.distributedBuilds = true;
|
nix.trustedUsers = [ "daniel" ];
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
builders-use-substitutes = true
|
experimental-features = nix-command flakes
|
||||||
experimental-features = nix-command flakes impure-derivations ca-derivations
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
users.users.daniel = {
|
||||||
# settings for stateful data, like file locations and database versions
|
isNormalUser = true;
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
uid = 1000;
|
||||||
# this value at the release version of the first install of this system.
|
shell = pkgs.zsh;
|
||||||
# Before changing this value read the documentation for this option
|
extraGroups = [ "wheel" "networkmanager" "docker" "video" "libvirtd" ];
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
initialPassword = "Abc123";
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
};
|
||||||
|
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
services.dbus.packages = with pkgs; [ dconf ];
|
||||||
|
|
||||||
|
# This value determines the NixOS release with which your system is to be
|
||||||
|
# compatible, in order to avoid breaking some software such as database
|
||||||
|
# servers. You should change this only after NixOS release notes say you
|
||||||
|
# should.
|
||||||
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,54 +8,50 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci_renesas" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
{ device = "/dev/disk/by-uuid/65fda346-b80f-410d-9577-891cdbf3e4b2";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=root" ];
|
options = [ "subvol=root" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."enc" = {
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/5ec9c954-9862-4d1d-bd61-bda34caf504b";
|
||||||
allowDiscards = true;
|
|
||||||
device = "/dev/disk/by-uuid/27c2e6ae-d9ec-4bbd-9ebe-6ec2e63dd139";
|
|
||||||
};
|
|
||||||
fileSystems."/home" =
|
fileSystems."/home" =
|
||||||
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
{ device = "/dev/disk/by-uuid/65fda346-b80f-410d-9577-891cdbf3e4b2";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=home" ];
|
options = [ "subvol=home" "compress=zstd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
fileSystems."/nix" =
|
||||||
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
{ device = "/dev/disk/by-uuid/65fda346-b80f-410d-9577-891cdbf3e4b2";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=nix" ];
|
options = [ "subvol=nix" "noatime" ];
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/persist" =
|
|
||||||
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=persist" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/log" =
|
|
||||||
{ device = "/dev/disk/by-uuid/276d0801-34f7-4d40-aa24-bfc43ea4ff51";
|
|
||||||
fsType = "btrfs";
|
|
||||||
options = [ "subvol=log" ];
|
|
||||||
neededForBoot = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/503B-1BC9";
|
{ device = "/dev/disk/by-uuid/ED9D-8221";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
[ { device = "/dev/disk/by-uuid/28c04c57-b026-471f-a7bf-366cbc102b78"; }
|
[ { device = "/dev/disk/by-uuid/6f23c4a2-2936-4d44-b5c0-03132b720742"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
# 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.enp2s0f0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|||||||
18
hosts/common/builder.nix
Normal file
18
hosts/common/builder.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.nixbuilder = {
|
||||||
|
group = "nixbuilder";
|
||||||
|
isSystemUser = true;
|
||||||
|
useDefaultShell = true;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDpGSDczzDOhTETCj+uB5e3/9QbOCaVW1knM+n1ey0n6LXH7uiPPmzuZiqfzmfbB1z4bjM2zpn3D6Et6zRCrBUjhTZqf/5GoNlvhVA6QYmBmBp98b8oY7juj5cmu55voxD0S5rC1mQMnWAAf8e8OPbkhs9Lt0XlOYdotLNIZQubzWqE2DK45g/h17ELJs+jkNXoalFjLvLXWzE/C+3pYoeNJVGHfVMTIwt7o64E6JXhxuYTYdSIuzd+BjntkSCXzcAzBFMRwkdlFVoBtLUMMcMQl39kcXv7lAQ8pv+8b1j1N9WuQVf1qEAcZguaimI1ifbXP5d841pZPApCj5KXectIEldfTrcwg8rZpd2UfYS/3XCcOuidBGprY7XsU/jz8wHbH68UjUrsLyaOMnG2ChYztnf63vm3gRs3Fc6FqTycpgYOPDeZBVTcMyPGgtiZvhnTeY20xFS5lK6M+dmgaDqH24kPLiwYSpUF2NK+Rg/2bZxvt/GaSr4U6fJGi3FCJOM= root@DanixLaptop"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.nixbuilder = {};
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "nixbuilder" ];
|
||||||
|
|
||||||
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
}
|
||||||
199
hosts/ikari/configuration.nix
Normal file
199
hosts/ikari/configuration.nix
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page, on
|
||||||
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
services.restic.backups."main" = {
|
||||||
|
repositoryFile = "/root/restic-main-repo";
|
||||||
|
passwordFile = "/root/restic-main-password";
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-daily 7"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 2"
|
||||||
|
];
|
||||||
|
paths = [
|
||||||
|
"/var/lib"
|
||||||
|
"/home/daniel"
|
||||||
|
];
|
||||||
|
exclude = [
|
||||||
|
"/home/*/.cache"
|
||||||
|
|
||||||
|
"/home/*/.local/Trash"
|
||||||
|
|
||||||
|
"/home/*/.local/share/Steam/*"
|
||||||
|
"!/home/*/.local/share/Steam/steamapps/compatdata"
|
||||||
|
|
||||||
|
"/home/*/.cargo"
|
||||||
|
"/home/*/**/target"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services.postgresql.enable = true;
|
||||||
|
services.postgresql.package = pkgs.postgresql_15;
|
||||||
|
services.postgresql.authentication = ''
|
||||||
|
host all all 192.168.10.0/24 md5
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [
|
||||||
|
# Add additional package names here
|
||||||
|
"nvidia-x11"
|
||||||
|
"nvidia-settings"
|
||||||
|
"nvidia-persistenced"
|
||||||
|
|
||||||
|
"steam"
|
||||||
|
"steam-original"
|
||||||
|
"steam-run"
|
||||||
|
"steam-unwrapped"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
hardware.nvidia = {
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
modesetting.enable = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = false;
|
||||||
|
};
|
||||||
|
#hardware.graphics.enable = true;
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = false;
|
||||||
|
dedicatedServer.openFirewall = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
networking.hostName = "ikari"; # Define your hostname.
|
||||||
|
# Pick only one of the below networking options.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
# networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||||
|
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Oslo";
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "nb_NO.UTF-8/UTF-8" ];
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_TIME = "nb_NO.UTF-8";
|
||||||
|
LC_PAPER = "nb_NO.UTF-8";
|
||||||
|
LC_NAME = "nb_NO.UTF-8";
|
||||||
|
LC_ADDRESS = "nb_NO.UTF-8";
|
||||||
|
LC_TELEPHONE = "nb_NO.UTF-8";
|
||||||
|
LC_MEASUREMENT = "nb_NO.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
||||||
|
};
|
||||||
|
console = {
|
||||||
|
font = "Lat2-Terminus16";
|
||||||
|
useXkbConfig = true; # use xkb.options in tty.
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services.displayManager.defaultSession = "xsession";
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.displayManager = {
|
||||||
|
session = [
|
||||||
|
{
|
||||||
|
manage = "desktop";
|
||||||
|
name = "xsession";
|
||||||
|
start = "exec $HOME/.xsession";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.dbus.packages = with pkgs; [ pkgs.dconf ];
|
||||||
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb.layout = "no";
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
# services.printing.enable = true;
|
||||||
|
|
||||||
|
# Enable sound.
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
jack.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.daniel = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCp8iMOx3eTiG5AmDh2KjKcigf7xdRKn9M7iZQ4RqP0np0UN2NUbu+VAMJmkWFyi3JpxmLuhszU0F1xY+3qM3ARduy1cs89B/bBE85xlOeYhcYVmpcgPR5xduS+TuHTBzFAgp+IU7/lgxdjcJ3PH4K0ruGRcX1xrytmk/vdY8IeSk3GVWDRrRbH6brO4cCCFjX0zJ7G6hBQueTPQoOy3jrUvgpRkzZY4ZCuljXtxbuX5X/2qWAkp8ca0iTQ5FzNA5JUyj+DWeEzjIEz6GrckOdV2LjWpT9+CtOqoPZOUudE1J9mJk4snNlMQjE06It7Kr50bpwoPqnxjo7ZjlHFLezl"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# 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
|
||||||
|
git
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
services.openssh.openFirewall = false;
|
||||||
|
|
||||||
|
networking.firewall.interfaces."tailscale0" = let
|
||||||
|
all = { from = 0; to = 65535; };
|
||||||
|
in {
|
||||||
|
allowedUDPPortRanges = [ all ];
|
||||||
|
allowedTCPPortRanges = [ all ];
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.trustedInterfaces = [ "eno1" ];
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "daniel" ];
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
system.stateVersion = "24.05"; # Did you read the comment?
|
||||||
|
}
|
||||||
|
|
||||||
38
hosts/ikari/hardware-configuration.nix
Normal file
38
hosts/ikari/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# 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" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/92bec2f5-9ae6-40c1-9c7b-a7b03ef8b79f";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/8FB1-1C05";
|
||||||
|
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.eno1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user