Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-12-21 16:56:15 -05:00
parent ceeed0c4df
commit 1baff01642
5 changed files with 11 additions and 14 deletions

View File

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
imports = [ ../users ]; imports = [ ./users ];
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
boot.kernelModules = [ "wireguard" ]; boot.kernelModules = [ "wireguard" ];

View File

@ -2,9 +2,7 @@
with lib; with lib;
let cfg = config.within.users.mkOthers "Make users other than cadey"; {
in {
users.users.cadey = { users.users.cadey = {
isNormalUser = true; isNormalUser = true;
extraGroups = extraGroups =
@ -29,4 +27,5 @@ in {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4mrGB2aTjHkp3r3Q7l8FHgtDPCCDqBUp9DykRWjcMA mara@blink" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4mrGB2aTjHkp3r3Q7l8FHgtDPCCDqBUp9DykRWjcMA mara@blink"
]; ];
}; };
users.users.root.openssh.authorizedKeys.keys = config.users.users.cadey.openssh.authorizedKeys.keys;
} }

View File

@ -17,7 +17,7 @@
nixosConfigurations.logos = nixpkgs.lib.nixosSystem { nixosConfigurations.logos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./hosts/logos ]; modules = [ ./hosts/logos ./hardware/alrest ];
}; };
deploy.nodes.some-random-system.profiles.system = { deploy.nodes.some-random-system.profiles.system = {

View File

@ -2,11 +2,7 @@
let metadata = pkgs.callPackage ../../../ops/metadata/peers.nix { }; let metadata = pkgs.callPackage ../../../ops/metadata/peers.nix { };
in { in {
imports = [ imports = [ ./hardware-configuration.nix ./zfs.nix ];
./hardware-configuration.nix
./solanum.nix
./zfs.nix
];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@ -33,10 +29,10 @@ in {
services.zfs.autoSnapshot.enable = true; services.zfs.autoSnapshot.enable = true;
services.zfs.trim.enable = true; services.zfs.trim.enable = true;
cadey.cpu = { # cadey.cpu = {
enable = true; # enable = true;
vendor = "intel"; # vendor = "intel";
}; # };
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;

View File

@ -1,6 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ../../common ];
users.motd = builtins.readFile ./motd; users.motd = builtins.readFile ./motd;
networking.hostName = "logos"; networking.hostName = "logos";