Splitting packages into separate file for system

This commit is contained in:
Tyler Kelley 2024-01-23 17:13:37 -06:00
parent 2122ffe26b
commit 98d08995c6
5 changed files with 47 additions and 34 deletions

View File

@ -3,12 +3,10 @@
pkgs.writeShellScriptBin "idle-switcher" ''
IDLECOMMAND=$(swayidle -w timeout 5 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on')
if [ $SWAYIDLESTATE == "1" ]; then
SWAYIDLESTATE="2"
if [[ ! $@ ]]; then
notify-send -t 2500 "Killing SwayIdle Sir."
killall swayidle
else
SWAYIDLESTATE="1"
notify-send -t 2500 "Starting SwayIdle Sir."
$IDLECOMMAND
fi

View File

@ -0,0 +1,33 @@
{ pkgs, config, ... }:
{
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List System Programs
environment.systemPackages = with pkgs; [
wget curl git cmatrix lolcat neofetch htop btop libvirt
polkit_gnome lm_sensors unzip unrar libnotify
v4l-utils ydotool wl-clipboard socat cowsay lsd
pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl
toybox virt-viewer
];
programs.steam.gamescopeSession.enable = true;
programs.dconf.enable = true;
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;
};
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
}

View File

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, deviceProfile, ... }:
{
# List services that you want to enable:
@ -30,4 +30,8 @@
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
services.blueman.enable = true;
services.qemuGuest = lib.mkIf ("${deviceProfile}" == "vm") {
enable = true;
};
}

View File

@ -57,5 +57,12 @@
};
};
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
programs.home-manager.enable = true;
}

View File

@ -36,39 +36,10 @@
homeMode = "755";
isNormalUser = true;
description = "${gitUsername}";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
packages = with pkgs; [];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List System Programs
environment.systemPackages = with pkgs; [
wget curl git cmatrix lolcat neofetch htop btop libvirt
polkit_gnome lm_sensors unzip unrar libnotify
v4l-utils ydotool wl-clipboard socat cowsay lsd
pkg-config meson hugo gnumake ninja go nodejs symbola
noto-fonts-color-emoji material-icons brightnessctl
toybox
];
programs.steam.gamescopeSession.enable = true;
programs.dconf.enable = true;
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.variables = {
POLKIT_BIN = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
};