Added a config for my framework laptop

This commit is contained in:
Alexandre1a 2026-02-07 12:33:33 +01:00
parent bfe901d939
commit 276e14f1bb
No known key found for this signature in database
GPG Key ID: CE01C28FBC5EEF10
8 changed files with 144 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -43,6 +43,15 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
]; ];
}; };
nixosConfigurations.framework = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/framework/configuration.nix
inputs.home-manager?nixosModules.default
inputs.sops-nix.nixosModules.sops
];
};
nixosConfigurations.laptop = nixpkgs.lib.nixosSystem { nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };

BIN
hosts/.DS_Store vendored

Binary file not shown.

View File

@ -68,6 +68,7 @@
shellAliases = { shellAliases = {
drs = "sudo darwin-rebuild switch --flake ~/Developer/nix/NixOSDots#macOS"; drs = "sudo darwin-rebuild switch --flake ~/Developer/nix/NixOSDots#macOS";
nrs = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#nixos"; nrs = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#nixos";
frw = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#framework";
lrs = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#light"; lrs = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#light";
lars = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#laptop"; lars = "sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#laptop";
cdd = "cd ~/Developer/nix/NixOSDots"; cdd = "cd ~/Developer/nix/NixOSDots";

View File

@ -0,0 +1,64 @@
{ config, pkgs, inputs, ...}:
{
imports = [
./modules.nix
];
networking = {
hostName = "framework";
networkmanager = {
enable = true;
};
};
# Todo -> 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
}

View File

@ -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.<interface>.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;
}

21
hosts/framework/home.nix Normal file
View File

@ -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";
};
};
}

View File

@ -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
];
}