Started migration of rotterdam to flake
This commit is contained in:
parent
3a9c4e152d
commit
ad5d0b0e2c
7 changed files with 94 additions and 16 deletions
12
flake.nix
12
flake.nix
|
|
@ -25,6 +25,18 @@
|
|||
|
||||
outputs = inputs @ { self, nixpkgs, home-manager, baduhai-nur, kmonad, nixpkgs-stable, home-manager-stable, deploy-rs, agenix, nixos-generators, homepage, dotfiles, ... }: {
|
||||
nixosConfigurations = {
|
||||
rotterdam = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/desktops/rotterdam.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{ nixpkgs.overlays = [ baduhai-nur.overlay agenix.overlays.default ]; }
|
||||
];
|
||||
};
|
||||
|
||||
io = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
btop
|
||||
comma
|
||||
git
|
||||
lazydocker
|
||||
micro
|
||||
neofetch
|
||||
sysz
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
rpcs3
|
||||
signal-desktop
|
||||
solvespace
|
||||
space-cadet-pinball
|
||||
steam-run
|
||||
streamlink-twitch-gui-bin
|
||||
tdesktop
|
||||
|
|
@ -56,6 +57,7 @@
|
|||
ventoy-bin
|
||||
virt-manager
|
||||
wezterm
|
||||
yubikey-personalization-gui
|
||||
# Package overrides
|
||||
(appimage-run.override {
|
||||
extraPkgs = pkgs: [ libthai ];
|
||||
|
|
|
|||
|
|
@ -27,21 +27,6 @@ in
|
|||
enable = true;
|
||||
excludePackages = ( with pkgs.plasma5Packages; [ elisa oxygen khelpcenter ]);
|
||||
};
|
||||
# displayManager = {
|
||||
# defaultSession = "plasmawayland";
|
||||
# sddm = {
|
||||
# enable = true;
|
||||
# autoNumlock = true;
|
||||
# settings = {
|
||||
# Theme = {
|
||||
# CursorTheme = "breeze_cursors";
|
||||
# };
|
||||
# X11 = {
|
||||
# UserAuthFile = ".local/share/sddm/Xauthority";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
greetd = {
|
||||
enable = true;
|
||||
|
|
|
|||
32
hosts/desktops/rotterdam.nix
Normal file
32
hosts/desktops/rotterdam.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
# Host-common imports
|
||||
../common
|
||||
# Desktop-common imports
|
||||
./common
|
||||
# Host-specific imports
|
||||
./rotterdam
|
||||
];
|
||||
|
||||
networking.hostName = "rotterdam";
|
||||
|
||||
nix.nixPath = [ "nixos-config=${./rotterdam.nix}" ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"processor.max_cstate=1" # Fixes bug where ryzen cpus freeze when in highest C state
|
||||
];
|
||||
|
||||
services.hardware.openrgb.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
yuzu-ea
|
||||
];
|
||||
|
||||
programs.corectrl.enable = true;
|
||||
|
||||
users.users.user.extraGroups = [
|
||||
"corectrl"
|
||||
];
|
||||
}
|
||||
7
hosts/desktops/rotterdam/default.nix
Normal file
7
hosts/desktops/rotterdam/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
||||
41
hosts/desktops/rotterdam/hardware-configuration.nix
Normal file
41
hosts/desktops/rotterdam/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# 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" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/9ccbb9e3-addc-42a3-b5d8-1e81eed37548";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/7707-0E25";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/39005453-0ac9-4fee-bdd3-7ea9bb6f9ca6"; }
|
||||
];
|
||||
|
||||
# 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.enp34s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
# high-resolution display
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue