Compare commits
3 Commits
6488e6b203
...
7ed89d05ed
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ed89d05ed | |||
| 0ce0d549ba | |||
| 771a2b88a7 |
12
flake.nix
12
flake.nix
@ -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
|
||||
|
||||
@ -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;
|
||||
@ -26,7 +34,7 @@
|
||||
};
|
||||
backupFileExtension = "backup";
|
||||
};
|
||||
|
||||
|
||||
programs.adb.enable = true;
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
@ -1,28 +1,45 @@
|
||||
# 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";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/72df93fc-6794-42d1-b611-8660b32a9cfa";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/F5B8-A39C";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/F5B8-A39C";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
|
||||
@ -31,6 +31,7 @@ in
|
||||
usbutils
|
||||
git
|
||||
unzip
|
||||
nixfmt-tree
|
||||
agenix.packages.${system}.default
|
||||
];
|
||||
};
|
||||
|
||||
6
modules/nix/containers/default.nix
Normal file
6
modules/nix/containers/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./nixos
|
||||
];
|
||||
}
|
||||
5
modules/nix/containers/nixos/default.nix
Normal file
5
modules/nix/containers/nixos/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
}
|
||||
@ -6,6 +6,7 @@
|
||||
./browser
|
||||
./cad
|
||||
./comm
|
||||
./containers
|
||||
./ctf
|
||||
./de
|
||||
./displaymanager
|
||||
|
||||
@ -37,7 +37,7 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
default = {};
|
||||
default = { };
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.flatpak.enable (
|
||||
@ -75,4 +75,3 @@ in
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
{ lib, pkgs, config, ... }:
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
|
||||
@ -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:{
|
||||
publicKeys =
|
||||
if builtins.isList key
|
||||
then key ++ [ nix-config-dev ]
|
||||
else [ key nix-config-dev ];
|
||||
mkKey = key: {
|
||||
publicKeys =
|
||||
if builtins.isList key then
|
||||
key ++ [ nix-config-dev ]
|
||||
else
|
||||
[
|
||||
key
|
||||
nix-config-dev
|
||||
];
|
||||
armor = true;
|
||||
};
|
||||
in
|
||||
|
||||
Loading…
Reference in New Issue
Block a user