mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
127 lines
3 KiB
Nix
127 lines
3 KiB
Nix
# ~/nixconfig/modules.new/nixos/laptop/desktop.nix
|
|
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
unstablePkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
hardware.rtl-sdr.enable = true;
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
};
|
|
services.xserver.enable = true;
|
|
services.gnome.gnome-keyring.enable = true;
|
|
services.dbus.enable = true; # for nextcloud client
|
|
|
|
# Use tuigreet to match laptop and default to Hyprland
|
|
services.greetd = {
|
|
enable = true;
|
|
settings = {
|
|
default_session = {
|
|
command = "${pkgs.tuigreet}/bin/tuigreet --cmd Hyprland";
|
|
user = "death916";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.system76-scheduler.enable = true;
|
|
|
|
# This is to fix clementine gui not showing up on wayland
|
|
environment.variables.QT_QPA_PLATFORM = "wayland";
|
|
services.udisks2.enable = true;
|
|
# environment.sessionVariables.NIXOS_OZONE_WL = "1"; # Required for some Electron apps
|
|
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
|
portalPackage =
|
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
coreutils
|
|
git
|
|
vim
|
|
wget
|
|
unstablePkgs.tailscale
|
|
unstablePkgs.cosmic-session
|
|
# halloy
|
|
inputs.flox.packages.${pkgs.stdenv.hostPlatform.system}.flox
|
|
wl-clipboard
|
|
clementine
|
|
systemctl-tui
|
|
btrfs-progs
|
|
unstablePkgs.btrfs-assistant
|
|
rust-analyzer
|
|
snapper
|
|
inetutils
|
|
# rustdesk
|
|
sdrpp
|
|
gqrx
|
|
# unstablePkgs.sdrangel
|
|
restic
|
|
docker-compose # Added for Winboat
|
|
cifs-utils
|
|
nil
|
|
nixfmt
|
|
nixd
|
|
];
|
|
|
|
services.snapper.configs.nix = {
|
|
SUBVOLUME = "/nix";
|
|
allowUsers = [ "death916" ];
|
|
|
|
CLEANUP_EMPTY = true;
|
|
CLEANUP_NUMBER = true;
|
|
CLEANUP_TIMELINE = true;
|
|
TIMELINE_CREATE = true;
|
|
TIMELINE_LIMIT_HOURLY = 5;
|
|
TIMELINE_LIMIT_DAILY = 7;
|
|
TIMELINE_LIMIT_WEEKLY = 0;
|
|
TIMELINE_LIMIT_MONTHLY = 0;
|
|
TIMELINE_LIMIT_YEARLY = 0;
|
|
};
|
|
|
|
services.snapper.configs.home = {
|
|
SUBVOLUME = "/home";
|
|
allowUsers = [ "death916" ];
|
|
|
|
CLEANUP_EMPTY = true;
|
|
CLEANUP_NUMBER = true;
|
|
CLEANUP_TIMELINE = true;
|
|
TIMELINE_CREATE = true;
|
|
TIMELINE_LIMIT_HOURLY = 5;
|
|
TIMELINE_LIMIT_DAILY = 7;
|
|
TIMELINE_LIMIT_WEEKLY = 0;
|
|
TIMELINE_LIMIT_MONTHLY = 0;
|
|
TIMELINE_LIMIT_YEARLY = 0;
|
|
};
|
|
|
|
virtualisation.docker.enable = true;
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
services.blueman.enable = true;
|
|
hardware.bluetooth.settings = {
|
|
General = {
|
|
Experimental = true;
|
|
};
|
|
};
|
|
|
|
programs.nh = {
|
|
enable = true;
|
|
clean.enable = true;
|
|
clean.extraArgs = "--keep-since 7d --keep 10";
|
|
flake = "/home/death916/Documents/nix-config/";
|
|
};
|
|
services.fprintd.enable = false;
|
|
programs.direnv.enable = true;
|
|
programs.nix-ld.enable = true;
|
|
programs.fish.enable = true;
|
|
}
|