mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
cleaned up the configuration
This commit is contained in:
parent
86643cca45
commit
1c3255f268
5 changed files with 62 additions and 65 deletions
|
@ -29,8 +29,6 @@
|
||||||
url = github:nix-community/home-manager;
|
url = github:nix-community/home-manager;
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{
|
outputs = inputs@{
|
||||||
|
@ -55,23 +53,20 @@
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
inherit lib;
|
|
||||||
|
|
||||||
|
|
||||||
# Home server
|
# Home server
|
||||||
Alaska = lib.nixosSystem {
|
Alaska = lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit user headscale pkgs-stable;
|
inherit user headscale;
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
inputs.nicks_nextcloud_integrations.nixosModules.default
|
|
||||||
{
|
{
|
||||||
networking.hostName = "Alaska";
|
networking.hostName = "Alaska";
|
||||||
}
|
}
|
||||||
|
inputs.nicks_nextcloud_integrations.nixosModules.default
|
||||||
./hosts/Alaska
|
./hosts/Alaska
|
||||||
./hosts/Alaska/configuration.nix
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./modules/backup_script.nix
|
./modules/backup_script.nix
|
||||||
|
./configuration.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules/dnsmasq.nix
|
./modules/dnsmasq.nix
|
||||||
./modules/forgejo.nix
|
./modules/forgejo.nix
|
||||||
|
|
|
@ -5,23 +5,6 @@
|
||||||
{ config, lib, pkgs, user, inputs, ... }:
|
{ config, lib, pkgs, user, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
# max cores used per derivation
|
|
||||||
nix.settings.cores = 8;
|
|
||||||
# max derivations that can be built at once
|
|
||||||
# nix.settings.max-jobs = 2;
|
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
|
||||||
|
|
||||||
security.pam.services.kwallet = {
|
|
||||||
name = "kdewallet";
|
|
||||||
enableKwallet = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.udev.packages = [
|
|
||||||
pkgs.android-udev-rules
|
|
||||||
];
|
|
||||||
|
|
||||||
# Some programs look for session variables to store config files at
|
# Some programs look for session variables to store config files at
|
||||||
# (Looking at you home-manager yazi)
|
# (Looking at you home-manager yazi)
|
||||||
environment.sessionVariables = rec {
|
environment.sessionVariables = rec {
|
||||||
|
@ -59,20 +42,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "nfts" ];
|
# Android Debugging interface
|
||||||
boot.loader.systemd-boot.configurationLimit = 5;
|
programs.adb.enable = true;
|
||||||
|
services.udev.packages = [
|
||||||
nix.settings.auto-optimise-store = true;
|
pkgs.android-udev-rules
|
||||||
nixpkgs.config.allowUnfree = true; # required for discord
|
];
|
||||||
nix.gc = {
|
|
||||||
automatic = true;
|
|
||||||
options = "--delete-generations 8d";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
users.users.${user} = {
|
users.users.${user} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "video" "audio" "networkmanager" "lp" "scanner" "input" "uinput" "cdrom"];
|
extraGroups = [
|
||||||
|
"wheel" "video"
|
||||||
|
"audio" "networkmanager"
|
||||||
|
"lp" "scanner"
|
||||||
|
"input" "uinput"
|
||||||
|
"cdrom" "adbusers"];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
password = "password";
|
password = "password";
|
||||||
};
|
};
|
||||||
|
@ -83,37 +66,67 @@
|
||||||
xkcd-font
|
xkcd-font
|
||||||
];
|
];
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
boot = {
|
||||||
|
supportedFilesystems = [ "nfts" ];
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
loader.systemd-boot.configurationLimit = 5;
|
||||||
console = {
|
|
||||||
font = "Lat2-Terminus16";
|
|
||||||
useXkbConfig = true; # use xkbOptions in tty.
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
bluetooth.enable = true;
|
||||||
opentabletdriver.enable = true;
|
opentabletdriver.enable = true;
|
||||||
steam-hardware.enable = true;
|
steam-hardware.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security = {
|
||||||
|
rtkit.enable = true;
|
||||||
|
pam.services.kwallet = {
|
||||||
|
name = "kdewallet";
|
||||||
|
enableKwallet = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
printing.enable = true;
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
#jack.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
sound = {
|
sound = {
|
||||||
enable = false;
|
enable = false;
|
||||||
mediaKeys.enable = true;
|
mediaKeys.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
time.timeZone = "America/Los_Angeles";
|
||||||
services.pipewire = {
|
time.hardwareClockInLocalTime = true;
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
alsa.support32Bit = true;
|
console = {
|
||||||
pulse.enable = true;
|
font = "Lat2-Terminus16";
|
||||||
#jack.enable = true;
|
useXkbConfig = true; # use xkbOptions in tty.
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
nixpkgs.config.allowUnfree = true;
|
||||||
services.printing.enable = true;
|
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
options = "--delete-generations 20d";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
auto-optimise-store = true;
|
||||||
|
# max cores used per derivation
|
||||||
|
cores = 8;
|
||||||
|
# max derivations that can be built at once
|
||||||
|
# nix.settings.max-jobs = 2;
|
||||||
|
};
|
||||||
package = pkgs.nixVersions.stable;
|
package = pkgs.nixVersions.stable;
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.adb.enable = true;
|
|
||||||
users.users.${user}.extraGroups = [ "adbusers" ];
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
|
@ -58,7 +55,6 @@
|
||||||
QT_QPA_PLATFORM = "xcb";
|
QT_QPA_PLATFORM = "xcb";
|
||||||
};
|
};
|
||||||
|
|
||||||
time.hardwareClockInLocalTime = true;
|
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi = {
|
efi = {
|
||||||
|
@ -85,6 +81,4 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,21 +6,16 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.adb.enable = true;
|
|
||||||
users.users.${user}.extraGroups = [ "adbusers" ];
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net"
|
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net"
|
||||||
"jellyfin.nickiel.net" ];
|
"jellyfin.nickiel.net" ];
|
||||||
};
|
};
|
||||||
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
# tailscale set --exit-node <SEVERNAME> to route through an exit node
|
||||||
services.tailscale.enable = true; networking.firewall = {
|
services.tailscale.enable = true;
|
||||||
|
networking.firewall = {
|
||||||
checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ];
|
checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ];
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||||
};
|
};
|
||||||
time.hardwareClockInLocalTime = true;
|
|
||||||
|
|
||||||
boot.loader = { efi = {
|
boot.loader = { efi = {
|
||||||
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
||||||
|
|
Loading…
Reference in a new issue