lots of stuff

This commit is contained in:
xunuwu 2024-02-23 05:34:33 +01:00
parent 926f8b190b
commit 6bae0fa254
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
42 changed files with 1109 additions and 73 deletions

View file

@ -9,10 +9,12 @@
mod = "${self}/system";
# get the basic config to build on top of
inherit (import "${self}/system") desktop laptop;
inherit (import "${self}/system") desktop;
# get these into the module system
specialArgs = {inherit inputs self;};
specialArgs = {
inherit inputs self;
};
in {
nixdesk = nixosSystem {
inherit specialArgs;
@ -20,9 +22,13 @@
desktop
++ [
./nixdesk
"${mod}/programs/gamemode.nix"
"${mod}/services/syncthing.nix"
"${self}/secrets"
"${self}/secrets/nixdesk"
"${mod}/services/syncthing.nix"
"${mod}/desktop/x11/nosleep.nix"
{
home-manager = {
users.xun.imports = homeImports."xun@nixdesk";
@ -37,6 +43,7 @@
./hopper
"${self}/secrets"
"${self}/secrets/hopper"
"${mod}/core"
@ -57,6 +64,11 @@
"${mod}/services"
"${mod}/services/pipewire.nix"
"${mod}/services/syncthing.nix"
"${mod}/services/containers/server"
#"${mod}/services/networkd-wireguard.nix"
#"${mod}/services/wireguard.nix"
#"${mod}/services/transmission.nix"
{
home-manager = {

View file

@ -8,6 +8,10 @@
networking.hostName = "hopper";
#services.tailscale.extraUpFlags = [
# "--ssh"
#];
swapDevices = [];
system.stateVersion = "23.11";

View file

@ -1,6 +1,7 @@
{
pkgs,
inputs,
lib,
...
}: {
imports = [
@ -15,7 +16,13 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
swapDevices = [];
swapDevices = [
{
device = "/var/lib/swapfile";
randomEncryption.enable = true;
size = 16 * 1024;
}
];
system.stateVersion = "23.11";
}