Compare commits

...

3 Commits

Author SHA1 Message Date
7ed89d05ed add nixfmt-tree to base-cli-pkgs
All checks were successful
nixos config pipeline / show-flake (push) Successful in 30s
nixos config pipeline / deploy (push) Successful in 1m8s
2025-08-24 22:28:14 +02:00
0ce0d549ba format 2025-08-24 22:27:49 +02:00
771a2b88a7 prepare for nixos containers add bridge for desktop1 2025-08-24 22:18:42 +02:00
11 changed files with 90 additions and 27 deletions

View File

@ -38,9 +38,17 @@
inputs.agenix.nixosModules.default
];
mkHost = hostConfig:
mkHost =
hostConfig:
nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system overlays agenix; };
specialArgs = {
inherit
inputs
system
overlays
agenix
;
};
modules = [ hostConfig ] ++ sharedModules;
};
in

View File

@ -8,6 +8,14 @@
networking.hostName = "desktop1";
networking.bridges.br0.interfaces = [ ];
networking.interfaces.br0.ipv4.addresses = [
{
address = "10.0.0.1";
prefixLength = 24;
}
];
smayzy = {
desktop.enable = true;
nvidia.enable = true;

View File

@ -1,27 +1,44 @@
# 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, ... }:
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ahci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/72df93fc-6794-42d1-b611-8660b32a9cfa";
fileSystems."/" = {
device = "/dev/disk/by-uuid/72df93fc-6794-42d1-b611-8660b32a9cfa";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F5B8-A39C";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/F5B8-A39C";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [ ];

View File

@ -31,6 +31,7 @@ in
usbutils
git
unzip
nixfmt-tree
agenix.packages.${system}.default
];
};

View File

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./nixos
];
}

View File

@ -0,0 +1,5 @@
{ ... }:
{
imports = [
];
}

View File

@ -6,6 +6,7 @@
./browser
./cad
./comm
./containers
./ctf
./de
./displaymanager

View File

@ -37,7 +37,7 @@ in
};
};
};
default = {};
default = { };
};
config = mkIf config.smayzy.flatpak.enable (
@ -75,4 +75,3 @@ in
}
);
}

View File

@ -1,4 +1,9 @@
{ lib, pkgs, config, ... }:
{
lib,
pkgs,
config,
...
}:
let
inherit (lib) mkIf mkOption types;
in

View File

@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }:
{
lib,
config,
pkgs,
...
}:
let
inherit (lib) mkIf mkOption types;
in

View File

@ -4,7 +4,11 @@ let
smayzy_desktop1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKebxL3JGy2UgPX4NjDvHjRz1ri6yyReAOURET+ULKz5";
smayzy_laptop1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB1AK9eYCMHAz1HE0/UmFeAmFNn6EJsVwiKsvzeHipuI";
smayzy_server1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0rBzdu8mwX26ZH7+bxHQsYqLZ/uCcBRP05OJlhzfZF";
users = [ smayzy_desktop1 smayzy_laptop1 smayzy_server1 ];
users = [
smayzy_desktop1
smayzy_laptop1
smayzy_server1
];
desktop1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM627oXXyR+0SlVNcRhyw2/8c3X4y+cl3XSU/BUumxzi";
laptop1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ6tnupPyqe4Ihc3D4S8ZSPCX4k1M/AEQ0gmy61O4CTb";
@ -14,11 +18,15 @@ let
servers = [ server1 ];
systems = desktops ++ laptops ++ servers;
mkKey = key:{
mkKey = key: {
publicKeys =
if builtins.isList key
then key ++ [ nix-config-dev ]
else [ key nix-config-dev ];
if builtins.isList key then
key ++ [ nix-config-dev ]
else
[
key
nix-config-dev
];
armor = true;
};
in