mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
initial fixes after first install on shivan
This commit is contained in:
parent
d8e63f5099
commit
d04f9610fd
@ -51,6 +51,28 @@
|
||||
];
|
||||
};
|
||||
|
||||
shivan = lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit user; inherit inputs; };
|
||||
modules = [
|
||||
./modules
|
||||
./hosts/shivan/configuration.nix
|
||||
./hosts/shivan/hardware.nix
|
||||
sops-nix.nixosModules.sops
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit user; };
|
||||
home-manager.users.${user} = {
|
||||
imports = [
|
||||
./home-modules
|
||||
./hosts/shivan/home-configuration.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
torus = lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit user; inherit inputs; };
|
||||
|
@ -16,6 +16,7 @@
|
||||
settings.devices = {
|
||||
"bulwark" = { id = "ZGLQ725-OJSDNTE-MXYLIUD-XDB7REJ-2B2DVNU-PAFF6VC-MUUWRI6-4SNPWAK"; };
|
||||
"torus" = { id = "WCZYHD7-5Y33SSU-74JHAQR-V7LYMDM-SDG2NTN-DJ2VKF2-DUBBUE5-PU5CGQN"; };
|
||||
"shivan" = { id = "KUSOQSH-RKLLA32-T3KAPQP-VNJISLL-QSQCGFZ-ZL7ZULE-MJC67DK-2U6G4Q7"; };
|
||||
};
|
||||
settings.folders = {
|
||||
"Gamecube Saves" = {
|
||||
@ -38,6 +39,10 @@
|
||||
path = "/home/${user}/.local/share/ares/Saves";
|
||||
devices = [ "bulwark" ];
|
||||
};
|
||||
"General Sync" = {
|
||||
path = "/home/${user}/sync";
|
||||
devices = [ "shivan" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -40,6 +40,7 @@
|
||||
networking.hostName = "shivan";
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
networking.firewall.enable = false;
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
@ -52,7 +53,6 @@
|
||||
|
||||
# Enable docker
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.storageDriver = "btrfs";
|
||||
|
||||
# Define user account.
|
||||
users.users.${user} = {
|
||||
|
38
provision/hosts/shivan/hardware.nix
Normal file
38
provision/hosts/shivan/hardware.nix
Normal file
@ -0,0 +1,38 @@
|
||||
# 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, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/fe18234e-9b76-4c4e-bb5b-3672fa15e426";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1940-C125";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
@ -14,8 +14,13 @@
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
settings.devices = {
|
||||
"kestrel" = { id = "KYEWTBL-GL343U7-OIM63LT-2IYGJAP-RCL545L-2KJOIY4-6352W6Y-DZRVGAL"; };
|
||||
};
|
||||
settings.folders = {
|
||||
"General Sync" = {
|
||||
path = "/home/${user}/sync";
|
||||
devices = [ "kestrel" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user