This commit is contained in:
KoenDR06 2024-04-01 15:12:39 +00:00
parent 3c2999c221
commit 85b42dc6d7
7 changed files with 15 additions and 41 deletions

View file

@ -62,8 +62,13 @@
luna = nixpkgs.lib.nixosSystem { luna = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;}; specialArgs = {inherit inputs outputs;};
modules = [ modules = [
# > Our main nixos configuration file < ./machines/luna/configuration.nix
./nixos/configuration.nix ];
};
terra = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [
./machines/terra/configuration.nix
]; ];
}; };
}; };

View file

@ -1,6 +0,0 @@
#!bin/bash
cd /home/horseman/nix-config
git pull
sudo nixos-rebuild switch --flake .#laptop-koen
exit 0

View file

@ -31,7 +31,7 @@
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
users = { users = {
# Import your home-manager configuration # Import your home-manager configuration
horseman = import ../home-manager/home.nix; horseman = import ../../home-manager/home.nix;
}; };
}; };
@ -82,7 +82,7 @@
auto-optimise-store = true; auto-optimise-store = true;
}; };
networking.hostName = "laptop-koen"; networking.hostName = "luna";
# time.timeZone = "Europe/Amsterdam"; # time.timeZone = "Europe/Amsterdam";

View file

@ -8,23 +8,23 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/4c50d5fb-2734-4acf-9aa9-daa4dbd8c982"; { device = "/dev/disk/by-uuid/5b1cef65-3c1b-4c46-b117-20271902390f";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7FE8-93C8"; { device = "/dev/disk/by-uuid/0433-B98A";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/1a5004e0-dfcb-4986-aa3d-e2cc9e81f70b"; } [ { device = "/dev/disk/by-uuid/6fbb72cf-415f-48f8-a850-5d91f6e7dae7"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@ -36,6 +36,5 @@
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true; # networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,6 +0,0 @@
#!bin/bash
cd /home/horseman/nix-config
git pull
sudo nixos-rebuild switch --flake .#pc-koen
exit 0

View file

@ -74,7 +74,7 @@
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
users = { users = {
# Import your home-manager configuration # Import your home-manager configuration
horseman = import ../home-manager/home.nix; horseman = import ../../home-manager/home.nix;
}; };
}; };
@ -125,7 +125,7 @@
auto-optimise-store = true; auto-optimise-store = true;
}; };
networking.hostName = "pc-koen"; networking.hostName = "terra";
# time.timeZone = "Europe/Amsterdam"; # time.timeZone = "Europe/Amsterdam";
@ -136,24 +136,6 @@
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
systemd.timers."update-config" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1m";
Unit = "update-config.service";
};
};
systemd.services."update-config" = {
script = ''
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
# TODO: Configure your system-wide user settings (groups, etc), add more users as needed. # TODO: Configure your system-wide user settings (groups, etc), add more users as needed.
users.users = { users.users = {
horseman = { horseman = {