mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 06:33:08 +01:00
Splitting packages into separate file for system
This commit is contained in:
parent
2122ffe26b
commit
98d08995c6
@ -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
|
||||
|
33
config/system/packages.nix
Normal file
33
config/system/packages.nix
Normal 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;
|
||||
}
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
7
home.nix
7
home.nix
@ -57,5 +57,12 @@
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
31
system.nix
31
system.nix
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user