Compare commits

...

2 commits

Author SHA1 Message Date
ant
632061ac61 reorganise code: os modules in flake.nix
Some checks failed
/ build-all (push) Failing after 57s
2026-03-12 22:40:38 +01:00
ant
38751363d4 update st-flexipatch 2026-03-12 22:40:38 +01:00
7 changed files with 54 additions and 62 deletions

16
flake.lock generated
View file

@ -192,16 +192,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1736549401, "lastModified": 1773122722,
"narHash": "sha256-ibkQrMHxF/7TqAYcQE+tOnIsSEzXmMegzyBWza6uHKM=", "narHash": "sha256-FIqHByVqxCprNjor1NqF80F2QQoiiyqanNNefdlvOg4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1dab772dd4a68a7bba5d9460685547ff8e17d899", "rev": "62dc67aa6a52b4364dd75994ec00b51fbf474e50",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-24.11", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -244,11 +244,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1773136055, "lastModified": 1773351562,
"narHash": "sha256-wvTn86J1kugxIBliYHW5+WQtm96+qt8dhJoSYE5pyHI=", "narHash": "sha256-H5flYFBFbyhMh0j+7aEbIBo2vyFmVIhJZNlKhRgOfBc=",
"rev": "3a062c2ba8d4b390090f53f6c38ce2c583098625", "rev": "398cfc9a93b3d1d56dd205839e30b5e7fe062fec",
"type": "tarball", "type": "tarball",
"url": "https://git.antoinevaure.fr/api/v1/repos/ant/st-flexipatch/archive/3a062c2ba8d4b390090f53f6c38ce2c583098625.tar.gz" "url": "https://git.antoinevaure.fr/api/v1/repos/ant/st-flexipatch/archive/398cfc9a93b3d1d56dd205839e30b5e7fe062fec.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -23,14 +23,13 @@
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = inputs.unstable.legacyPackages.${system}; pkgs-unstable = inputs.unstable.legacyPackages.${system};
nixgl = inputs.nixgl.packages.${system}; nixgl = inputs.nixgl.packages.${system};
osConfig = name: nixpkgs.lib.nixosSystem { sshKeys = (import ./sshKeys.nix);
osConfig = modules: nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
}; };
modules = [ inherit modules;
./os/${name}/configuration.nix
];
}; };
homeConfig = modules: inputs.home-manager.lib.homeManagerConfiguration { homeConfig = modules: inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
@ -92,10 +91,46 @@
./home/moon.nix ./home/moon.nix
]; ];
nixosConfigurations.basado = osConfig "basado"; nixosConfigurations.basado = osConfig [
nixosConfigurations.moon = osConfig "moon"; ./os/basado/configuration.nix
nixosConfigurations.hs = osConfig "hs"; ./os/basado/hardware-configuration.nix
nixosConfigurations.ks = osConfig "ks";
./os/common.nix
./os/common-graphics.nix
(import ./os/remote-disk-unlock.nix ["igb"] (with sshKeys; [moon]))
./os/builder.nix
./os/kdeconnect-ports.nix
(import ./os/swapfile.nix 64)
./os/ccache.nix
];
nixosConfigurations.moon = osConfig [
./os/moon/configuration.nix
./os/moon/hardware-configuration.nix
./os/common.nix
./os/common-graphics.nix
./os/kdeconnect-ports.nix
];
nixosConfigurations.hs = osConfig [
./os/hs/configuration.nix
./os/hs/hardware-configuration.nix
./os/hs/syncthing.nix
./os/hs/disks.nix
./os/hs/backup.nix
./os/common.nix
./os/forgejo.nix
(import ./os/remote-disk-unlock.nix ["r8169"] (with sshKeys; [moon basado]))
./os/builder.nix
./os/ccache.nix
(import ./os/swapfile.nix 64)
];
nixosConfigurations.ks = osConfig [
./os/ks/configuration.nix
./os/ks/hardware-configuration.nix
./os/common.nix
./os/3proxy.nix
];
build-all = pkgs.runCommand "build-all" { build-all = pkgs.runCommand "build-all" {
buildInputs = buildInputs =

View file

@ -30,7 +30,7 @@ in
nerd-fonts.caskaydia-cove nerd-fonts.caskaydia-cove
cascadia-code cascadia-code
inter inter
joypixels symbola
bluetuith bluetuith
keepmenu keepmenu

View file

@ -1,20 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let sshKeys = with (import ../../sshKeys.nix); [
moon
];
in
{ {
imports = [
./hardware-configuration.nix
../common.nix
../common-graphics.nix
(import ../remote-disk-unlock.nix ["igb"] sshKeys)
../builder.nix
../kdeconnect-ports.nix
(import ../swapfile.nix 64)
../ccache.nix
];
boot.loader = { boot.loader = {
grub = { grub = {
enable = true; enable = true;

View file

@ -1,28 +1,10 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
sshKeys = with (import ../../sshKeys.nix); [ sshKeys = import ../../sshKeys.nix;
basado
moon
allegro
hs
];
domain = "antoinev.freeboxos.fr"; domain = "antoinev.freeboxos.fr";
utils = import ../utils.nix; utils = import ../utils.nix;
in { in {
imports = [
./hardware-configuration.nix
./syncthing.nix
./disks.nix
./backup.nix
../common.nix
../forgejo.nix
(import ../remote-disk-unlock.nix ["r8169"] sshKeys)
../builder.nix
../ccache.nix
(import ../swapfile.nix 64)
];
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;
@ -49,7 +31,7 @@ in {
"wheel" "wheel"
"jellyfin" "jellyfin"
]; ];
openssh.authorizedKeys.keys = sshKeys; openssh.authorizedKeys.keys = (with sshKeys; [ basado moon allegro hs ]);
}; };
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;

View file

@ -6,9 +6,6 @@ let
sshKeys = (import ../../sshKeys.nix); sshKeys = (import ../../sshKeys.nix);
in { in {
imports = [ imports = [
./hardware-configuration.nix
../common.nix
../3proxy.nix
inputs.simple-nixos-mailserver.nixosModule inputs.simple-nixos-mailserver.nixosModule
]; ];

View file

@ -1,12 +1,5 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
../common.nix
../common-graphics.nix
../kdeconnect-ports.nix
];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;