some updates on the laptop. so much left to clean up...

This commit is contained in:
Markus Heurung 2024-09-12 12:57:25 +02:00
parent 0d6376347b
commit c850c4c238

View file

@ -7,7 +7,7 @@
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./muhhStar-hardware-configuration.nix ./muhhStar-hardware-configuration.nix
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes"]; nix.settings.experimental-features = [ "nix-command" "flakes"];
@ -18,15 +18,22 @@
#boot.loader.efi.efiSysMountPoint = "/boot/efi"; #boot.loader.efi.efiSysMountPoint = "/boot/efi";
networking.hostName = "muhhStar"; # Define your hostname. networking.hostName = "muhhStar"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. networking.networkmanager.enable = true;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
security.sudo.wheelNeedsPassword = false; security = {
pam.services.swaylock = {};
polkit.enable = true;
rtkit.enable = true;
sudo = {
wheelNeedsPassword = false;
};
};
# Enable networking # Enable networking
networking.networkmanager.enable = true;
# nm has some issue with the tailscale0 interface? https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959 # nm has some issue with the tailscale0 interface? https://github.com/NixOS/nixpkgs/issues/180175#issuecomment-1658731959
systemd.services.NetworkManager-wait-online = { systemd.services.NetworkManager-wait-online = {
serviceConfig = { serviceConfig = {
@ -54,14 +61,13 @@
services.flatpak.enable = true; services.flatpak.enable = true;
services.fwupd.enable = true; services.fwupd.enable = true;
security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
# If you want to use JACK applications, uncomment this # If you want to use JACK applications, uncomment this
#jack.enable = true; #jack.enable = true;
}; };
services.tailscale = { services.tailscale = {
enable = true; enable = true;
@ -91,11 +97,11 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
home-manager home-manager
toolbox toolbox
vim vim
wget wget
]; ];
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
@ -107,12 +113,20 @@
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;
programs = { programs = {
_1password.enable = true;
_1password-gui = {
enable = true;
polkitPolicyOwners = ["muhh"];
};
fish.enable = true; fish.enable = true;
gnupg.agent = { gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; enableSSHSupport = true;
}; };
light.enable = true; light = {
enable = true;
brightnessKeys.enable = true;
};
sway.enable = true; sway.enable = true;
}; };
virtualisation.podman = { virtualisation.podman = {
@ -120,8 +134,16 @@
dockerCompat = true; dockerCompat = true;
}; };
xdg.portal.wlr.enable = true; xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
};
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;