aboutsummaryrefslogtreecommitdiff
path: root/nix/configuration.nix
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-04-01 19:12:12 +0100
committerAria Shrimpton <me@aria.rip>2024-04-01 19:12:12 +0100
commita0c19f7f9dff15228490f37dbd5e6053e80cb05c (patch)
tree08d6ce3ad9c8dfbb092438797752b0d180b3f8c9 /nix/configuration.nix
parent8b7687ff151a0e57e5b0d9cf10258657e0d2b7c2 (diff)
more repro stuff
Diffstat (limited to 'nix/configuration.nix')
-rw-r--r--nix/configuration.nix37
1 files changed, 8 insertions, 29 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix
index 6338c63..39e76a2 100644
--- a/nix/configuration.nix
+++ b/nix/configuration.nix
@@ -21,14 +21,8 @@
nix = {
settings.experimental-features = ["nix-command" "flakes" "ca-derivations"];
- gc = {
- automatic = true;
- dates = "03:15";
- options = "--delete-older-than 1d";
- };
};
- # Everything below here is just boring machine setup
networking.hostName = "candelabra";
networking.useDHCP = lib.mkDefault true;
@@ -38,32 +32,17 @@
# SSH Access
services.openssh = {
enable = true;
- settings.PermitRootLogin = "prohibit-password";
+ settings.PermitRootLogin = "yes";
};
- users.users.root.openssh.authorizedKeys.keys = [
- "no-touch-required sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPpKjZfzPN1KxVskFRnmTTCwzyCtjwcXVZc4i1rNfl9oAAAABHNzaDo= me@aria.rip"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPJN58ZzY9WZgaHYlIN6w1RtleaRpcX7gRr4j7m6aHso candelabra" # CI
- ];
-
- # Boot & filesystems
- boot.loader.grub.enable = true;
- boot.loader.grub.device = "/dev/sda";
-
- boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
- boot.initrd.kernelModules = [];
- boot.kernelModules = ["kvm-intel"];
- boot.extraModulePackages = [];
-
- fileSystems."/" = {
- device = "/dev/disk/by-uuid/b7946a55-0573-4be9-801b-5ca9afc7b3f3";
- fsType = "ext4";
- };
-
- swapDevices = [
- {device = "/dev/disk/by-uuid/9101d36f-dba8-4dda-8f4b-8dc8c1d37fe9";}
- ];
+ users.users.root.password = "candelabra";
+ services.getty.autologinUser = "root";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = "23.11";
+
+ system.activationScripts.copy-candelabra-src = ''
+ echo "copying candelabra source to /root/...";
+ cp -r ${../.} /root/candelabra;
+ '';
}