nixos/hosts/nixdev/default.nix

131 lines
2.8 KiB
Nix
Raw Normal View History

2024-05-09 12:03:13 +01:00
{ inputs, config, lib, pkgs, outputs, ... }:
2024-05-08 00:45:54 +01:00
{
imports =
[
./hardware-configuration.nix
];
2024-05-09 12:03:13 +01:00
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
2024-05-08 00:45:54 +01:00
2024-05-09 12:03:13 +01:00
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
2024-05-08 00:45:54 +01:00
};
};
2024-05-09 12:03:13 +01:00
# home-manager = {
# extraSpecialArgs = { inherit inputs; };
# users = {
# sam = import ./home.nix;
# };
# };
2024-05-08 00:45:54 +01:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
networking.networkmanager.enable = true;
time.timeZone = "Europe/London";
networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
i18n.defaultLocale = "en_GB.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "uk";
useXkbConfig = false;
};
services.printing.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
services.libinput.enable = true;
users.users.sam = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
users.users.sam.shell = pkgs.zsh;
environment.systemPackages = with pkgs; [
curl
vim
home-manager
tmux
waybar
git
mako
libnotify
wl-clipboard
swww
rofi-wayland
networkmanagerapplet
htop
2024-05-11 13:49:12 +01:00
sddm-theme
2024-05-08 00:45:54 +01:00
sddm
2024-05-09 12:03:13 +01:00
sshfs-fuse
2024-05-08 00:45:54 +01:00
wdisplays
2024-05-09 12:03:13 +01:00
wallpaper_changer
#(callPackage ../../nixos_modules/themes/sddm-sugar-candy.nix{}).sddm-sugar-candy-theme
2024-05-08 00:45:54 +01:00
libsForQt5.qt5.qtgraphicaleffects #required for sugar candy
2024-05-09 12:03:13 +01:00
#(import ../../nixos_modules/scripts/wallpaper_changer.nix { inherit pkgs; })
2024-05-08 00:45:54 +01:00
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.zsh.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
hardware = {
opengl.enable = true;
nvidia.modesetting.enable = true;
};
services.openssh.enable = true;
2024-05-11 13:49:12 +01:00
# services.displayManager.sddm = {
# enable = true;
# theme = "sugar-candy";
# };
services.displayManager.sddm = {
enable = true;
package = lib.mkForce pkgs.libsForQt5.sddm;
theme = "sugar-candy";
};
2024-05-08 00:45:54 +01:00
services.displayManager.sddm.wayland.enable = true;
system.stateVersion = "23.11";
}