mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added a config for my framework laptop
This commit is contained in:
parent
bfe901d939
commit
276e14f1bb
@ -44,6 +44,15 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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; };
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
BIN
hosts/.DS_Store
vendored
BIN
hosts/.DS_Store
vendored
Binary file not shown.
@ -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";
|
||||||
|
|||||||
64
hosts/framework/configuration.nix
Normal file
64
hosts/framework/configuration.nix
Normal 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
|
||||||
|
}
|
||||||
38
hosts/framework/hardware-configuration.nix
Executable file
38
hosts/framework/hardware-configuration.nix
Executable 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
21
hosts/framework/home.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
11
hosts/framework/modules.nix
Normal file
11
hosts/framework/modules.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user