first commit

This commit is contained in:
2026-03-10 16:57:35 +01:00
commit 31c7ad6454
14 changed files with 395 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
{ pkgs, ... }:
{
hardware.sensor.iio.enable = true;
environment.systemPackages = with pkgs; [
pkgs.framework-tool
];
powerManagement.powertop.enable = true;
services.power-profiles-daemon.enable = false;
services.thermald.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
# CPU_ENERGY_PERF_POLICY_ON_BAT = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
WIFI_PWR_ON_BAT = "on";
RUNTIME_PM_ON_BAT = "auto";
};
};
}

View File

@@ -0,0 +1,25 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
firefox
ungoogled-chromium
vscodium
spotify
nautilus
cloudflared
vesktop
keepassxc
btop
signal-desktop
gradia
gimp
];
programs.obs-studio = {
enable = true;
};
}

23
hosts/framework/gnome.nix Normal file
View File

@@ -0,0 +1,23 @@
{ pkgs, ... }:
{
services.xserver.videoDrivers = [ "modesetting" ];
services.displayManager.gdm.enable = true;
services.desktopManager.gnome = {
enable = true;
extraGSettingsOverrides = ''
[org.gnome.mutter]
edge-tiling=true
experimental-features=['scale-monitor-framebuffer']
'';
};
services.gnome.core-apps.enable = false;
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
environment.systemPackages = with pkgs; [
gnome-terminal
];
}

View File

@@ -0,0 +1,58 @@
# 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 = [
"xhci_pci"
"uas"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelParams = [
"acpi_backlight=video"
"intel_iommu=on"
];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/b962ed03-4e8c-4497-8dc4-11fe93fb5491";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/FCB8-EBDD";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/ab428817-6688-4f7d-a06b-6865e90a24a6"; }
];
# 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.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -0,0 +1,24 @@
{ pkgs, ... }:
{
services.nextdns = {
enable = false;
arguments = [
"-config"
"f57efb"
"-cache-size"
"16MB"
];
};
powerManagement.resumeCommands = ''
systemctl try-restart nextdns
'';
environment.systemPackages = with pkgs; [
nextdns
];
services.resolved.enable = true;
networking.networkmanager.dns = "systemd-resolved";
}

7
hosts/framework/niri.nix Normal file
View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
programs.niri.enable = false;
environment.systemPackages = with pkgs; [
fuzzel
];
}

View File

@@ -0,0 +1,8 @@
{
#programs.steam = {
# enable = true;
# remotePlay.openFirewall = true;
# dedicatedServer.openFirewall = true;
# localNetworkGameTransfers.openFirewall = true;
#};
}