reformatted JWST configuration.nix

This commit is contained in:
Aria Nolan 2023-11-23 12:34:23 -05:00
parent aa2f41d140
commit d776e064a9

View file

@ -9,10 +9,14 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
sops.defaultSopsFile = ./secrets/secrets.yaml; # ------------ System ------------
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/tacocat/.config/sops/age/keys.txt"; users.users.tacocat = {
isNormalUser = true;
extraGroups = ["wheel" "networkmanager" "audio" "video" "bluetooth" "kvm"];
home = "/home/tacocat";
description = "Aria Nolan";
};
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = false; efi.canTouchEfiVariables = false;
@ -30,20 +34,6 @@
}; };
}; };
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings.auto-optimise-store = true;
nix.settings.trusted-users = ["root" "tacocat"];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
networking.hostName = "JWST";
networking.networkmanager.enable = true;
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
console = { console = {
font = "Lat2-Terminus16"; font = "Lat2-Terminus16";
@ -52,11 +42,10 @@
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
# Enable CUPS to print documents. networking.hostName = "JWST";
services.printing.enable = true; networking.networkmanager.enable = true;
services.geoclue2.enable = true;
# Enable sound. # Sound
sound.enable = true; sound.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
@ -65,6 +54,81 @@
jack.enable = true; jack.enable = true;
}; };
# Services/Hardware
hardware.opentabletdriver.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
services.printing.enable = true;
services.geoclue2.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
# ------------ Nix ------------
nix.settings = {
experimental-features = ["nix-command" "flakes"];
auto-optimise-store = true;
trusted-users = ["root" "tacocat"];
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"nvidia-x11"
"nvidia-settings"
];
# ------------ Software ------------
environment = {
systemPackages = with pkgs; [
vim
exfat
encfs
ntfs3g
];
# remove nano
defaultPackages = with pkgs; [
perl
rsync
strace
];
};
sops = {
defaultSopsFile = ./secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age.keyFile = "/home/tacocat/.config/sops/age/keys.txt";
};
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraPackages = with pkgs; [
swaylock
swayidle
brightnessctl
wl-mirror
];
};
programs.waybar.enable = true;
programs.steam.enable = true;
xdg.portal = { xdg.portal = {
enable = true; enable = true;
wlr.enable = true; wlr.enable = true;
@ -73,6 +137,8 @@
]; ];
}; };
# ------------ Graphics ------------
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
@ -98,59 +164,4 @@
}; };
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.opentabletdriver.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.tacocat = {
isNormalUser = true;
extraGroups = ["wheel" "networkmanager" "audio" "video" "bluetooth" "kvm"];
home = "/home/tacocat";
description = "Aria Nolan";
};
programs.sway.enable = true;
programs.sway.wrapperFeatures.gtk = true;
programs.sway.extraPackages = with pkgs; [
swaylock
swayidle
brightnessctl
wl-mirror
];
programs.waybar.enable = true;
programs.steam.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"nvidia-x11"
"nvidia-settings"
];
environment = {
systemPackages = with pkgs; [
vim
exfat
encfs
ntfs3g
];
defaultPackages = with pkgs; [
perl
rsync
strace
];
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
} }