2023-03-15 14:58:55 +00:00
|
|
|
{ config, pkgs, inputs, ... }:
|
2023-02-05 14:48:47 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2023-04-18 11:33:38 +00:00
|
|
|
boot.supportedFilesystems = [ "ntfs" ];
|
2023-02-05 14:48:47 +00:00
|
|
|
|
2023-02-06 09:21:35 +00:00
|
|
|
networking.networkmanager.enable = true;
|
2023-02-05 14:48:47 +00:00
|
|
|
|
2023-03-10 08:22:59 +00:00
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
2023-02-05 14:48:47 +00:00
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-03-10 08:22:59 +00:00
|
|
|
users.groups.tmux.gid = 1000; # Used for tmux pairing
|
|
|
|
systemd.tmpfiles.rules = [
|
2023-03-13 08:57:11 +00:00
|
|
|
"d /var/tmux_share 2770 tsv tmux"
|
2023-03-10 08:22:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
users.users.tsv = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"docker"
|
|
|
|
"tmux"
|
2023-04-04 21:21:35 +00:00
|
|
|
"networkmanager"
|
2023-03-10 08:22:59 +00:00
|
|
|
];
|
|
|
|
initialPassword = "password";
|
|
|
|
};
|
|
|
|
|
2023-02-17 11:51:36 +00:00
|
|
|
nix.settings.trusted-users = [ "root" "tsv" ];
|
|
|
|
|
2023-03-09 18:49:28 +00:00
|
|
|
nix = {
|
|
|
|
extraOptions = "experimental-features = nix-command flakes";
|
|
|
|
package = pkgs.nixFlakes;
|
2023-06-06 09:51:38 +00:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
2023-03-09 18:49:28 +00:00
|
|
|
};
|
|
|
|
|
2023-02-06 09:21:35 +00:00
|
|
|
hardware.bluetooth.enable = true;
|
2023-02-05 14:48:47 +00:00
|
|
|
|
2023-03-15 14:58:55 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.wget
|
|
|
|
pkgs.tmux
|
|
|
|
pkgs.git
|
|
|
|
pkgs.pciutils
|
2023-04-28 19:22:01 +00:00
|
|
|
pkgs.pinentry-curses
|
2023-03-15 14:58:55 +00:00
|
|
|
pkgs.xdg-desktop-portal
|
|
|
|
pkgs.xdg-desktop-portal-gtk
|
|
|
|
pkgs.xdg-desktop-portal-kde
|
|
|
|
inputs.devenv.packages.x86_64-linux.devenv
|
2023-02-05 14:48:47 +00:00
|
|
|
];
|
|
|
|
|
2023-04-28 19:22:01 +00:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
};
|
|
|
|
|
2023-03-17 14:28:12 +00:00
|
|
|
environment.variables.LC_ALL = "en_GB.UTF-8";
|
|
|
|
|
2023-02-05 14:48:47 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2023-04-03 15:40:01 +00:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
# Experimental features in Waybar gives us access to workspace selectors
|
|
|
|
waybar = super.waybar.overrideAttrs (oldAttrs: {
|
|
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
|
|
});
|
|
|
|
})
|
2023-04-04 08:06:26 +00:00
|
|
|
inputs.codeium.overlays.x86_64-linux.default
|
2023-04-28 18:09:55 +00:00
|
|
|
inputs.hyprcontrib.overlays.default
|
2023-04-03 15:40:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
|
2023-02-05 16:57:39 +00:00
|
|
|
virtualisation.docker.enable = true;
|
2023-02-05 14:48:47 +00:00
|
|
|
|
2023-03-10 08:22:59 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
};
|
2023-02-05 14:48:47 +00:00
|
|
|
|
2023-02-05 16:57:39 +00:00
|
|
|
system.stateVersion = "22.11"; # Don't change this
|
2023-02-05 14:48:47 +00:00
|
|
|
}
|
|
|
|
|