From 276e14f1bb5a2d0b628eb39ae6683337aaf4ed87 Mon Sep 17 00:00:00 2001 From: Alexandre1a Date: Sat, 7 Feb 2026 12:33:33 +0100 Subject: [PATCH] Added a config for my framework laptop --- .DS_Store | Bin 6148 -> 6148 bytes flake.nix | 9 +++ hosts/.DS_Store | Bin 6148 -> 6148 bytes hosts/common/home.nix | 1 + hosts/framework/configuration.nix | 64 +++++++++++++++++++++ hosts/framework/hardware-configuration.nix | 38 ++++++++++++ hosts/framework/home.nix | 21 +++++++ hosts/framework/modules.nix | 11 ++++ 8 files changed, 144 insertions(+) create mode 100644 hosts/framework/configuration.nix create mode 100755 hosts/framework/hardware-configuration.nix create mode 100644 hosts/framework/home.nix create mode 100644 hosts/framework/modules.nix diff --git a/.DS_Store b/.DS_Store index da018f1a070386e66a12ec7aad83c9acbc0905c0..bcb6fdcd39083a5d188172f8828c020330ee4f1c 100644 GIT binary patch literal 6148 zcmeHKPm9w)6o0dunq(KX2VE5}0TC3cHlh^SORe=L2u2i9sm-Rgannp`((R!X;z<-g zfGB)qp4Yrt!*A5QYxVkk?mEZMT-v7KNUBQ!w?J80DPcY<-6(6o?=yeZ=gfg&9UUm53-D-(G`5eE$VJsu9EDbUnL0i%Gf zz^dq0+4+BS`Tbu{GCiY!QQ$x+K&*DqZs8-zv$gba?5y>$Ji)?@#T5d13Rdzs<_&ff epTxoq$2`_RY)UKyq6f|V5#TbI$|&$p75D}EiRohi delta 212 zcmZoMXfc=|#>B)qF;Q%yo+2a9#(>?7j69QhSR~_Fre0!TU|?a;V@PMnWGKnacX3I| z$xi}`aeVW>%QB!ku~2NHo+6{r#(>?7i#IScF$zuQVd}2uWJqHuVn}4jWk_WxXUGS# zvy;k;3zBm3lNcBnwkH+jWEPhg7+hmyVrF4wV`t}N=Vp%$&d4thE=epYEp|#QiU#pQ z^7C_&VC=-Cu*}r*cmWaT{JfIH%)Hbhu!hW(RG^ZW@XWlF{Bo!K(!7-7=z1g>PEHQa zcmeV1YI74q9R)+9S{;RIb3=0-1xo{i+FDKyQDuGWp!n>Z+`Rlwpxc0ekr6^O@Iq-A z)dgf=@mWr~VQ_MOZUIag14BJFWx4q-F3R delta 68 zcmZoMXfc=|#>B)qu~2NHo+2a9#(>?7j69QhSh_bGv0Y`{tiUmwc{4i)KL=3FW Display server for all nixos machines (lightdm or smth else) + + # User + users= { + users = { + alex = { + isNormalUser = true; + description = "Alexandre Delcamp--Enache"; + shell= pkgs.zsh; + extraGrousp = [ "networkmanager" "wheel" ]; + }; + }; + }; + # HomeManager + home-manager = { + extraSpecialArgs = { inherit inputs; }; + useGlobalPkgs = true; + useUserPackages = true; + backupFileExtension = "HM-Backup"; + users = { + "alex" = import ./home.nix; + }; + }; + + programs = { + hyprland = { + enable = true; + }; + zsh = { + enable = true; + enableAutosuggestions = true; + }; + }; + + environment = { + systemPackages = with pkgs; [ + playerctl + ]; + sessionVariables = { + NIXOS_OZONE_WL = "1"; + }; + pathsToLink = [ "/share/zsh" ]; + }; + + system = { + stateVersion = "24.11"; + }; + +# End of config +} diff --git a/hosts/framework/hardware-configuration.nix b/hosts/framework/hardware-configuration.nix new file mode 100755 index 0000000..b9e5267 --- /dev/null +++ b/hosts/framework/hardware-configuration.nix @@ -0,0 +1,38 @@ +# 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" "thunderbolt" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/da617628-d792-4010-af1d-20a25eda3d5b"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C246-555A"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + 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..useDHCP`. + networking.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; +} diff --git a/hosts/framework/home.nix b/hosts/framework/home.nix new file mode 100644 index 0000000..cd4100a --- /dev/null +++ b/hosts/framework/home.nix @@ -0,0 +1,21 @@ +{ config, pkgs, inputs, ...}: + +{ + imports = [ + ../common/home.nix + ../../modules/home-manager/hyprland.nix + ]; + + home = { + stateVersion = "25.11"; + packages = with pkgs; [ + ]; + file = { + + }; + + sessionVariables = { + EDITOR = "nvim"; + }; + }; +} diff --git a/hosts/framework/modules.nix b/hosts/framework/modules.nix new file mode 100644 index 0000000..63c2c77 --- /dev/null +++ b/hosts/framework/modules.nix @@ -0,0 +1,11 @@ +{ + imports = [ + ./hardware-configuration.nix + inputs.sops-nix.nixosModules.sops + ../common/modules.nix + ../../modules/nixos/secrets.nix + ../../modules/nixos/gaming/starCitizen.nix + ../../modules/nixos/gaming/steam.nix + ../../modules/common/spotify.nix + ]; +}