Initial flake for lithium

This commit is contained in:
Vili Sinervä 2025-05-31 21:27:53 +03:00
parent 24aac9708b
commit 9d1bd2941f
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 20 additions and 1 deletions

16
flake.nix Normal file
View file

@ -0,0 +1,16 @@
{
description = "All system configurations for Vili Sinervä";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
};
outputs =
{ nixpkgs }:
{
nixosConfigurations.lithium = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./hosts/lithium.nix ];
};
};
}

View file

@ -1,8 +1,9 @@
{ lib, ... }: { lib, ... }:
{ {
system.stateVersion = 24.05;
networking.hostName = "lithium"; networking.hostName = "lithium";
custom.home_wg_suffix = "3";
custom.home_wg_suffix = "3";
system.autoUpgrade.allowReboot = lib.mkForce false; system.autoUpgrade.allowReboot = lib.mkForce false;
# boot.kernelParams = [ "resume_offset=39292928" ]; # boot.kernelParams = [ "resume_offset=39292928" ];

View file

@ -1,5 +1,7 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
imports = [ /etc/nixos/hardware-configuration.nix ];
options.custom.gua_pref = lib.mkOption { options.custom.gua_pref = lib.mkOption {
type = with lib.types; nullOr (strMatching "^[0-9a-zA-Z:]+$"); type = with lib.types; nullOr (strMatching "^[0-9a-zA-Z:]+$");
default = null; default = null;