Finalize lithium flakes test
This commit is contained in:
parent
dea7fcbf96
commit
79d460d08f
6 changed files with 63 additions and 12 deletions
|
@ -3,7 +3,10 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
nixvim.url = "github:nix-community/nixvim/nixos-25.05";
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -19,7 +22,7 @@
|
|||
nixpkgs.lib.nameValuePair host (
|
||||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit nixpkgs;
|
||||
nixpkgs-flake = nixpkgs;
|
||||
inherit nixvim;
|
||||
};
|
||||
system = "x86_64-linux";
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
system.stateVersion = 24.05;
|
||||
networking.hostName = "lithium";
|
||||
# MANUAL STATE
|
||||
system.stateVersion = "24.05";
|
||||
boot.kernelParams = [ "resume_offset=39292928" ];
|
||||
# MANUAL STATE
|
||||
|
||||
networking.hostName = "lithium";
|
||||
custom.home_wg_suffix = "3";
|
||||
system.autoUpgrade.allowReboot = lib.mkForce false;
|
||||
# boot.kernelParams = [ "resume_offset=39292928" ];
|
||||
|
||||
imports = [
|
||||
../../shared/base.nix
|
||||
|
|
45
hosts/lithium/hardware-configuration.nix
Normal file
45
hosts/lithium/hardware-configuration.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"thunderbolt"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"sdhci_pci"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b43fe465-80e9-48d4-a4be-1113c917330e";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."nixos".device = "/dev/disk/by-uuid/4dc2fd8c-71da-4b95-91d5-7a118387172b";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/D8BB-B91A";
|
||||
fsType = "vfat";
|
||||
options = [
|
||||
"fmask=0077"
|
||||
"dmask=0077"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
|
@ -22,7 +22,7 @@
|
|||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
sessionCommands = ''${pkgs.xorg.xrdb}/bin/xrdb -merge < ${
|
||||
(import ./embedded/xresources.nix { inherit pkgs; })
|
||||
(import ./programs/embedded/xresources.nix { inherit pkgs; })
|
||||
}'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
xserver.windowManager.i3 = {
|
||||
enable = true;
|
||||
extraPackages = [ ];
|
||||
configFile = "${(import ./embedded/i3.nix { inherit pkgs; })}";
|
||||
configFile = "${(import ./embedded/i3-conf.nix { inherit pkgs; })}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
nixpkgs,
|
||||
nixpkgs-flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -134,7 +134,9 @@
|
|||
######################################## Housekeeping ###########################################
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+https://gitea.sinerva.eu/VSinerva/nixos-conf.git?ref=main&shallow=1";
|
||||
|
||||
#TODO Change to main once everything gets switched over to flakes
|
||||
flake = "git+https://gitea.sinerva.eu/VSinerva/nixos-conf.git?ref=clean_slate&shallow=1";
|
||||
dates = "04:00";
|
||||
randomizedDelaySec = "30min";
|
||||
allowReboot = true;
|
||||
|
@ -144,9 +146,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
registry = {
|
||||
nixpkgs.flake = nixpkgs;
|
||||
nixpkgs.flake = nixpkgs-flake;
|
||||
};
|
||||
settings = {
|
||||
experimental-features = [
|
||||
|
@ -164,8 +167,6 @@
|
|||
};
|
||||
|
||||
######################################## Misc. ##################################################
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
networking = {
|
||||
# Easiest to use and most distros use this by default.
|
||||
networkmanager = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue