Compare commits
4 Commits
ffda398f8d
...
b13cca7173
| Author | SHA1 | Date | |
|---|---|---|---|
| b13cca7173 | |||
| 7807091b83 | |||
| d3026afb97 | |||
| 152daf1230 |
@@ -20,7 +20,7 @@ creation_rules:
|
|||||||
- *primary
|
- *primary
|
||||||
- *builder-ssh
|
- *builder-ssh
|
||||||
|
|
||||||
- path_regex: hosts/pianonix/secrets.yaml$
|
- path_regex: hosts/pianonix/secrets*
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *primary
|
||||||
|
|||||||
30
flake.lock
generated
30
flake.lock
generated
@@ -364,11 +364,11 @@
|
|||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759582739,
|
"lastModified": 1760106635,
|
||||||
"narHash": "sha256-spZegilADH0q5OngM86u6NmXxduCNv5eX9vCiUPhOYc=",
|
"narHash": "sha256-2GoxVaKWTHBxRoeUYSjv0AfSOx4qw5CWSFz2b+VolKU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "3441b5242af7577230a78ffb03542add264179ab",
|
"rev": "9ed85f8afebf2b7478f25db0a98d0e782c0ed903",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -410,11 +410,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759381078,
|
"lastModified": 1760524057,
|
||||||
"narHash": "sha256-gTrEEp5gEspIcCOx9PD8kMaF1iEmfBcTbO0Jag2QhQs=",
|
"narHash": "sha256-EVAqOteLBFmd7pKkb0+FIUyzTF61VKi7YmvP1tw4nEw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7df7ff7d8e00218376575f0acdcc5d66741351ee",
|
"rev": "544961dfcce86422ba200ed9a0b00dd4b1486ec5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -438,11 +438,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759580034,
|
"lastModified": 1760423683,
|
||||||
"narHash": "sha256-YWo57PL7mGZU7D4WeKFMiW4ex/O6ZolUS6UNBHTZfkI=",
|
"narHash": "sha256-Tb+NYuJhWZieDZUxN6PgglB16yuqBYQeMJyYBGCXlt8=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "3bcc93c5f7a4b30335d31f21e2f1281cba68c318",
|
"rev": "a493e93b4a259cd9fea8073f89a7ed9b1c5a1da2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -462,11 +462,11 @@
|
|||||||
"systems": "systems_5"
|
"systems": "systems_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758373036,
|
"lastModified": 1760187633,
|
||||||
"narHash": "sha256-tm73KNHsGQwAAoFEcAvuXAmHf3KaWLSuf/R9UQ6WMnU=",
|
"narHash": "sha256-0+hp5PqHTXEUjUnc7oFIJVILkNVC330kMeVNdayYrII=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "a30decbd5fc231e84dfefeb75bc7f57d8167726c",
|
"rev": "76e558c281e738bf1564e366a0c44533bdf0638d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -548,11 +548,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759635238,
|
"lastModified": 1760393368,
|
||||||
"narHash": "sha256-UvzKi02LMFP74csFfwLPAZ0mrE7k6EiYaKecplyX9Qk=",
|
"narHash": "sha256-8mN3kqyqa2PKY0wwZ2UmMEYMcxvNTwLaOrrDsw6Qi4E=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "6e5a38e08a2c31ae687504196a230ae00ea95133",
|
"rev": "ab8d56e85b8be14cff9d93735951e30c3e86a437",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
is-nixos = true;
|
is-nixos = true;
|
||||||
terminal = "wezterm";
|
terminal = "wezterm";
|
||||||
|
|
||||||
services.syncthing.tray.enable = true;
|
# services.syncthing.tray.enable = true;
|
||||||
services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available
|
# services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
music-reader
|
music-reader
|
||||||
@@ -27,9 +27,33 @@
|
|||||||
onboard
|
onboard
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
profiles.default = {
|
||||||
|
isDefault = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
"browser.startup.homepage" = "https://sheets.julian-mutter.de";
|
||||||
|
"browser.startup.page" = 1; # 0=blank, 1=home page, 3=restore previous session
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# commandLineArgs = [
|
||||||
|
# "--homepage=https://sheets.julian-mutter.de"
|
||||||
|
# "--no-first-run"
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
|
||||||
# Autostart link
|
# Autostart link
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/autostart/sheet-organizer.desktop".source = "${pkgs.sheet-organizer}/share/applications/sheet-organizer.desktop";
|
# ".config/autostart/sheet-organizer.desktop".source = "${pkgs.sheet-organizer}/share/applications/sheet-organizer.desktop";
|
||||||
|
# ".config/autostart/firefox.desktop".source = "${pkgs.firefox}/share/applications/firefox.desktop";
|
||||||
|
".config/autostart/chromium.desktop".source = "${pkgs.chromium}/share/applications/chromium.desktop";
|
||||||
".config/sheet-organizer/config.toml".text = ''
|
".config/sheet-organizer/config.toml".text = ''
|
||||||
working_directory = "/home/julian/Klavier"
|
working_directory = "/home/julian/Klavier"
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
networking.hostName = "builder";
|
networking.hostName = "builder";
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
networking.nameservers = [
|
networking.nameservers = [
|
||||||
"192.168.3.252"
|
"192.168.3.252"
|
||||||
"172.30.20.10"
|
"172.30.20.10"
|
||||||
|
|||||||
@@ -22,21 +22,41 @@
|
|||||||
../common/optional/pcmanfm.nix
|
../common/optional/pcmanfm.nix
|
||||||
../common/optional/redshift.nix
|
../common/optional/redshift.nix
|
||||||
../common/optional/authentication.nix
|
../common/optional/authentication.nix
|
||||||
|
|
||||||
|
../common/optional/avahi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# disko.devices.disk.main.device = "/dev/mmcblk1";
|
# disko.devices.disk.main.device = "/dev/mmcblk1";
|
||||||
|
|
||||||
|
# enabled by fish, disabling speeds up builds
|
||||||
|
documentation.man.generateCaches = false;
|
||||||
|
|
||||||
|
networking.enableIPv6 = false; # This only leads to issues with avahi
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
services.blueman.enable = true; # bluetooth gui
|
||||||
|
# raspberry pi specific
|
||||||
|
# systemd.services.btattach = {
|
||||||
|
# before = [ "bluetooth.service" ];
|
||||||
|
# after = [ "dev-ttyAMA0.device" ];
|
||||||
|
# wantedBy = [ "multi-user.target" ];
|
||||||
|
# serviceConfig = {
|
||||||
|
# ExecStart = "${pkgs.bluez}/bin/btattach -B /dev/ttyAMA0 -P bcm -S 3000000";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
# networking.wireless.enable = true;
|
# networking.wireless.enable = true;
|
||||||
# networking.wireless.environmentFile = config.sops.secrets."wifi/pianonix".path;
|
# networking.wireless.environmentFile = config.sops.secrets."wifi/pianonix".path;
|
||||||
# networking.wireless.networks = {
|
# networking.wireless.networks = {
|
||||||
# "@SSID@".psk = "@PSK@";
|
# "@SSID@".psk = "@PSK@";
|
||||||
# };
|
# };
|
||||||
|
services.gnome.at-spi2-core.enable = true; # for onboard
|
||||||
|
|
||||||
networking.hostName = "pianonix";
|
networking.hostName = "pianonix";
|
||||||
system.stateVersion = "22.11";
|
system.stateVersion = "22.11";
|
||||||
|
|
||||||
sops.secrets."vnc-passwd" = {
|
sops.secrets."vnc-passwd" = {
|
||||||
owner = config.users.users.julian.name;
|
owner = config.users.users.julian.name;
|
||||||
sopsFile = ./vnc-passwd;
|
sopsFile = ./secrets-vnc-passwd.bin;
|
||||||
format = "binary";
|
format = "binary";
|
||||||
};
|
};
|
||||||
sops.secrets."wifi/pianonix" = {};
|
sops.secrets."wifi/pianonix" = {};
|
||||||
@@ -45,6 +65,18 @@
|
|||||||
# sops.secrets."syncthing/public-keys/aspi-nix" = { };
|
# sops.secrets."syncthing/public-keys/aspi-nix" = { };
|
||||||
# sops.secrets."syncthing/public-keys/pianonix" = { };
|
# sops.secrets."syncthing/public-keys/pianonix" = { };
|
||||||
|
|
||||||
|
sops.secrets."wg-config" = {
|
||||||
|
sopsFile = ./secrets-wg-config.bin;
|
||||||
|
format = "binary";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.wg-quick.interfaces = {
|
||||||
|
home = {
|
||||||
|
configFile = config.sops.secrets."wg-config".path;
|
||||||
|
autostart = true; # This interface is started on boot
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -54,6 +86,7 @@
|
|||||||
|
|
||||||
# Enable the Desktop Environment.
|
# Enable the Desktop Environment.
|
||||||
# services.xserver.displayManager.lightdm.enable = true;
|
# services.xserver.displayManager.lightdm.enable = true;
|
||||||
|
services.displayManager.defaultSession = "xfce";
|
||||||
services.displayManager.autoLogin = {
|
services.displayManager.autoLogin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "julian";
|
user = "julian";
|
||||||
@@ -73,10 +106,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.timeout = 1; # Set boot loader timeout to 1s
|
boot.loader.timeout = lib.mkForce 1; # Set boot loader timeout to 1s
|
||||||
|
|
||||||
# De-facto disable network manager, which is enabled by gnome
|
# De-facto disable network manager, which is enabled by gnome
|
||||||
# networking.networkmanager.unmanaged = [ "*" ];
|
# networking.networkmanager.unmanaged = [ "*" ];
|
||||||
|
services.xserver.enable = true;
|
||||||
services.xserver.desktopManager = {
|
services.xserver.desktopManager = {
|
||||||
xfce = {
|
xfce = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [];
|
||||||
boot.kernelModules = [];
|
boot.kernelModules = [];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest; # use latest linux kernel
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
||||||
|
|||||||
18
hosts/pianonix/secrets-wg-config.bin
Normal file
18
hosts/pianonix/secrets-wg-config.bin
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"data": "ENC[AES256_GCM,data:SFc3K1hvBjeCS6ikLZl3vIPFJqsUrZZi9yO9tVuv14exKhOuK17HN/d+cYMtVxGwqQ/biFdXYdP8/sfTPwwZgd/wRLT2xRDMOg5ru7kj8sEhcOEYmrgYRLo3ImdWANFaxelWOmjEvzphTQ7guvXTo7BACUA9AygYa9Ou9bklYImWhOCsk8e9uz5afLZXscidiqUqqFuJNo3QGMDEAxFI2YC3OpLwEj5zlsI4AXEEHRVUxU1sVtspdolDaeiFIs/JW4jLu/2la6JyGJUluYXAThzL1LO39NA/MSNskMSedatz89vnCd9CP6Q3eT93vrUYAEY=,iv:e+tWIlHm4NH1w8AQAw6tvgCX9XOiroE1XmrSua3Bcg4=,tag:RwGpKtG9JzQ3TgcnzEV5Rg==,type:str]",
|
||||||
|
"sops": {
|
||||||
|
"age": [
|
||||||
|
{
|
||||||
|
"recipient": "age1ee5udznhadk6m7jtglu4709rep080yjyd2ukzdl8jma4mm92y3psv0slpg",
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBkd0t1dVk0VU5Vajg0NlBi\nQ2hnUUFKZ2FuUEVPOFFIcUdRSVV6TzlYakFBCmNQVFZpTm0wSW9MclRNaDJUcHRp\nbmhRcld5MmJUV2VXL0l3aXJrWWVCbE0KLS0tIHAvWU5yVC9mSXU5SUpScnQwMUh4\nandnYUxVVVFNeHZER3ZuYlBYSC9PcmMKEfQqJllI8cYg3hdN9SCVruRk5bqfQJ0s\ncdFHjR+ImRzyb6e/XZqSnYD6dJebeqNiU19FFdVxAssa8zqXoLiEhg==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"recipient": "age1hsmfz8fjxu83sax9lr487h8xr6cyge0apdq4zpge4c8jpcjj2cksj825ct",
|
||||||
|
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBvSTk3NXJ0MTFIVCtnQlNv\nQ2gzbFJVbzJ0S2hGV0J2d3pQNWxnYk82T2s0CklOUnZVUTRwNzlVcE94TlIyNko2\nTFNzV3AxSFcyN0JvVitISk5pT3ZUSmcKLS0tICtZdTJSQS85c3J0NGIydW9wNDA0\nb0dZaisxWGw1Y0JleUFtb3p4MkxDVHcKId8ELqzqPOKGdJOC4D18aoWOjTuy6i6q\nwxN/ThkqGO7ktVFEYuRT+slSHcE+TM4iD745QZvR5H0JkLZbQTYyqw==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"lastmodified": "2025-10-14T06:56:31Z",
|
||||||
|
"mac": "ENC[AES256_GCM,data:DrcOET5U6veg0qhcBjQQ5neCdTUufMxhIz4ZQzvzd+YxKfAqaq8R1PW5VVlUjhDBaUH9i3J1Wj6X4E600uhayY0E9I5VqfO84hqlosfZWPiWPO8prK46Y7R3Ybdh9uvWQxiaSxy8KHXsdDgsBFLlmLe/QvsDSUv56rPofkm06vg=,iv:XBFP8ANpsszeXqQIE/v7+GmZGlFtxgE/EtgL/Cc3x+8=,tag:ZJgO+hLuwIatE55wo94RVw==,type:str]",
|
||||||
|
"version": "3.11.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,6 +3,9 @@
|
|||||||
NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations";
|
NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations";
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
nix
|
nix
|
||||||
|
deploy-rs # for deploy
|
||||||
|
nixos-generators # for nixos-generate -f iso --flake .#host
|
||||||
|
nh # nix helper for nice interfaces
|
||||||
home-manager
|
home-manager
|
||||||
git
|
git
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user