Started doing the minimalist config

This commit is contained in:
Alexandre Delcamp--Enache 2026-01-03 17:36:33 +01:00
parent cb30d21ffd
commit 2847a9143b
5 changed files with 117 additions and 0 deletions

View File

@ -36,7 +36,15 @@
./hosts/nixos/configuration.nix ./hosts/nixos/configuration.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
];
};
nixosConfigurations.light = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hosts/light/configuration.nix
inputs.home-manager.nixosModules.default
inputs.sops-nix.nixosModules.sops
]; ];
}; };

View File

@ -0,0 +1,68 @@
{ config, pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
./modules.nix
];
# Bootloader
boot = {
loader = {
systemd-boot = {
enable = true;
};
efi = {
canTouchEfiVariables = true;
};
};
};
# Networking
networking = {
hostname = "light";
networkmanager = {
enable = true;
};
};
# Services
services = {
# Desktop Environment/Greeter
xserver = {
enable = true;
displayManager = {
defaultSession = "xfce";
lightdm = {
enable = true;
};
};
desktopManager = {
xfce = {
enable = true;
};
xterm = {
enable = true;
};
};
};
};
# General nix settings
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
};
};
# Nixpkgs config
nixpkgs = {
config = {
allowUnfree = true;
};
};
system = {
stateVersion = "24.11";
};
}

View 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 = [ "ahci" "ehci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/04221613-07f9-4a50-adc5-53ccf1056a32";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-5f8f7a58-4fbe-4dd5-9572-7dbdf286978d".device = "/dev/disk/by-uuid/5f8f7a58-4fbe-4dd5-9572-7dbdf286978d";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/8B5B-FC36";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
# 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.enp2s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

0
hosts/light/home.nix Normal file
View File

0
hosts/light/modules.nix Normal file
View File