-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bendik Dyrli <[email protected]>
- Loading branch information
Bendik Dyrli
committed
Oct 25, 2024
1 parent
c328f22
commit 11f825d
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ config, pkgs, ... }: | ||
|
||
{ | ||
imports = [ | ||
# Hardware udev rules | ||
./hardware-configuration.nix | ||
|
||
# core dotfiles + graphical things | ||
../../home | ||
../../home/hx | ||
../../home/hx/gui.nix | ||
../../home/hx/cli.nix | ||
../../home/hx/i3 | ||
|
||
# Common | ||
../../common/intelcpu.nix | ||
../../common/fingerprint.nix | ||
../../common/laptop.nix | ||
../../common/intelgpu.nix | ||
../../common/docker.nix | ||
../../common/fonts.nix | ||
../../common/networkmanager.nix | ||
../../common/pipewire.nix | ||
../../common/networking-extra.nix | ||
../../common/security.nix | ||
../../common/nix-pkg-allow.nix | ||
../../common/fwupd.nix | ||
../../common/zsh.nix | ||
../../common/ssh-client.nix | ||
]; | ||
|
||
boot.loader.systemd-boot.enable = true; | ||
boot.loader.efi.canTouchEfiVariables = true; | ||
|
||
systemd.services.NetworkManager-wait-online.enable = false; # to avoid iface or vbox waiting for connection. | ||
networking.hostName = "SpaceCruiser"; | ||
networking.useDHCP = false; | ||
networking.interfaces.enp5s0.useDHCP = true; | ||
networking.interfaces.wlp6s0.useDHCP = false; | ||
|
||
i18n.defaultLocale = "en_GB.UTF-8"; | ||
console = { keyMap = "no"; }; | ||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
time.timeZone = "Europe/Oslo"; | ||
home-manager.users.hx.home.stateVersion = "24.05"; | ||
system.stateVersion = "24.05"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 = | ||
[ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; | ||
boot.initrd.kernelModules = [ "amdgpu" ]; | ||
boot.kernelModules = [ "kvm-amd" ]; | ||
boot.extraModulePackages = [ ]; | ||
boot.kernelParams = [ ]; | ||
|
||
fileSystems."/" = { | ||
device = "/dev/disk/by-label/nixos"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
fileSystems."/boot" = { | ||
device = "/dev/disk/by-label/boot"; | ||
fsType = "vfat"; | ||
}; | ||
|
||
swapDevices = [{ device = "/dev/disk/by-label/swap"; }]; | ||
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
nixpkgs.hostPlatform = "x86_64-linux"; | ||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
} |