framework-2024-06-17-20-49-45

This commit is contained in:
Alexander Szczepanski
2024-06-17 20:49:45 +02:00
parent b94912e152
commit f2855bf1b9
3 changed files with 30 additions and 24 deletions

View File

@ -3,6 +3,16 @@ let secrets = import ./secrets.nix;
in { in {
environment.shells = with pkgs; [ bashInteractive zsh ]; environment.shells = with pkgs; [ bashInteractive zsh ];
programs = {
nh = {
enable = true;
# clean = {
# enable = true;
# extraArgs = "--keep-since 14d --keep 5";
# };
};
};
services = { services = {
vnstat.enable = true; vnstat.enable = true;
tuptime.enable = true; tuptime.enable = true;
@ -104,7 +114,10 @@ in {
wget wget
]; ];
nix.settings = { auto-optimise-store = true; }; nix.settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" ];
};
boot = { boot = {
tmp.useTmpfs = true; tmp.useTmpfs = true;

View File

@ -23,12 +23,13 @@
]; ];
}; };
layout = "us"; xkb.layout = "us";
# Enable touchpad support.
libinput.enable = true;
updateDbusEnvironment = true; updateDbusEnvironment = true;
}; };
# Enable touchpad support.
libinput.enable = true;
}; };
systemd.user.services = { systemd.user.services = {

View File

@ -15,8 +15,7 @@ in
../configs/docker.nix ../configs/docker.nix
../configs/games.nix ../configs/games.nix
../configs/libvirt.nix ../configs/libvirt.nix
../configs/plasma.nix ../configs/pantheon.nix
# ../configs/pantheon.nix
../configs/user-gui.nix ../configs/user-gui.nix
../configs/user.nix ../configs/user.nix
/home/alex/Workspace/fw-fanctrl-nix/service.nix /home/alex/Workspace/fw-fanctrl-nix/service.nix
@ -25,22 +24,18 @@ in
boot = { boot = {
initrd.systemd.enable = true; initrd.systemd.enable = true;
loader = { loader = {
# grub = {
# enable = true;
# device = "nodev";
# useOSProber = true;
# efiSupport = true;
# };
systemd-boot.enable = true; systemd-boot.enable = true;
efi = { canTouchEfiVariables = true; }; efi = { canTouchEfiVariables = true; };
}; };
plymouth.enable = true; plymouth.enable = true;
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config = {
nixpkgs.config.packageOverrides = pkgs: { allowUnfree = true;
intel-vaapi-driver = packageOverrides = pkgs: {
pkgs.intel-vaapi-driver.override { enableHybridCodec = true; }; intel-vaapi-driver =
pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
};
}; };
# nixpkgs.localSystem = { # nixpkgs.localSystem = {
@ -49,10 +44,7 @@ in
# system = "x86_64-linux"; # system = "x86_64-linux";
# }; # };
# nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nix.settings.system-features = [ "nixos-test" "benchmark" "big-parallel" "kvm" "gccarch-alderlake" ];
nix.settings.system-features =
[ "nixos-test" "benchmark" "big-parallel" "kvm" "gccarch-alderlake" ];
networking = { networking = {
hostName = "framework"; hostName = "framework";
@ -99,10 +91,10 @@ in
configJsonPath = "/home/alex/nixos-config/config.json"; configJsonPath = "/home/alex/nixos-config/config.json";
}; };
displayManager.autoLogin = { # displayManager.autoLogin = {
enable = true; # enable = true;
user = "alex"; # user = "alex";
}; # };
pipewire = { pipewire = {
enable = true; enable = true;