forked from emily/nixfiles
added integra
This commit is contained in:
parent
b76a613945
commit
3201fd5a96
7 changed files with 108 additions and 22 deletions
29
config/hosts/integra/configuration.nix
Normal file
29
config/hosts/integra/configuration.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
imports = [
|
||||
../../common
|
||||
../../profiles/builder.nix
|
||||
../../profiles/headless.nix
|
||||
./hardware-configuration.nix
|
||||
./disko.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
kyouma.machine-type.physical = true;
|
||||
|
||||
networking = {
|
||||
hostName = "integra";
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
matchConfig.Type = "ether";
|
||||
matchConfig.Name = "e*";
|
||||
networkConfig = {
|
||||
DHCP = "yes";
|
||||
};
|
||||
};
|
||||
}
|
45
config/hosts/integra/disko.nix
Normal file
45
config/hosts/integra/disko.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ config, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.disko.nixosModules.disko
|
||||
];
|
||||
disko.devices.disk.root = {
|
||||
device = "/dev/sda";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
BOOT = {
|
||||
type = "EF00";
|
||||
size = "512M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
mountOptions = [ "umask=0077" "defaults" ];
|
||||
};
|
||||
};
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "btrfs";
|
||||
extraArgs = [ "-f" ];
|
||||
subvolumes = {
|
||||
"nixos" = {
|
||||
mountpoint = "/";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"home" = {
|
||||
mountpoint = "/home";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
"nix" = {
|
||||
mountpoint = "/nix";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
10
config/hosts/integra/hardware-configuration.nix
Normal file
10
config/hosts/integra/hardware-configuration.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ config, inputs, lib, pkgs, ... }: {
|
||||
imports = [
|
||||
../../common
|
||||
../../profiles/builder.nix
|
||||
../../profiles/headless.nix
|
||||
../../profiles/kartoffel.nix
|
||||
../../profiles/lxc.nix
|
||||
|
@ -9,30 +10,10 @@
|
|||
|
||||
networking = {
|
||||
hostName = "seras";
|
||||
nftables.enable = lib.mkForce false;
|
||||
};
|
||||
nix.gc.options = lib.mkForce "--delete-older-than 60d";
|
||||
nix.settings.trusted-users = [ "build" ];
|
||||
nix.extraOptions = ''
|
||||
min-free = ${builtins.toString (4096 * 1024 * 1024)}
|
||||
max-free = ${builtins.toString (8192 * 1024 * 1024)}
|
||||
max-substitution-jobs = 20
|
||||
max-silent-time = 900
|
||||
'';
|
||||
|
||||
systemd.network.networks."98-eth-default" = {
|
||||
address = [
|
||||
"2a0f:be01:0:100::169/128"
|
||||
];
|
||||
};
|
||||
users.users.build = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
ignoreShellProgramCheck = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICT0dGyLUjxFnvqUmex+5xUGQ7D4yGHKo267JgApcq0k root@ryuuko"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDTwCSWYODyvTJxwB6Rahuy0j6s/YYwtQta8bjzG/We root@ryuuko-arch"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
20
config/profiles/builder.nix
Normal file
20
config/profiles/builder.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ lib, pkgs, ... }: {
|
||||
nix.gc.options = lib.mkForce "--delete-older-than 60d";
|
||||
nix.settings.trusted-users = [ "build" ];
|
||||
nix.extraOptions = ''
|
||||
min-free = ${builtins.toString (4096 * 1024 * 1024)}
|
||||
max-free = ${builtins.toString (8192 * 1024 * 1024)}
|
||||
max-substitution-jobs = 20
|
||||
max-silent-time = 900
|
||||
'';
|
||||
users.users.build = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.bash;
|
||||
ignoreShellProgramCheck = true;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA/+iN407+HsfHbbC3tfdA8Yf4TZ08qXQMb4tb/SDAs+ emily@card"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICT0dGyLUjxFnvqUmex+5xUGQ7D4yGHKo267JgApcq0k root@ryuuko"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDTwCSWYODyvTJxwB6Rahuy0j6s/YYwtQta8bjzG/We root@ryuuko-arch"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -52,6 +52,7 @@
|
|||
shinyflakes = import ./lib/shinyflakes inputs;
|
||||
in {
|
||||
hosts = shinyflakes.mapHosts {
|
||||
integra = { system = "aarch64-linux"; };
|
||||
lain = { system = "aarch64-linux"; };
|
||||
};
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
genNixosCfg = {
|
||||
hostname,
|
||||
system ? "x86_64-linux"
|
||||
}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
Loading…
Reference in a new issue