Compare commits

...

7 commits

Author SHA1 Message Date
0a7f9ecc86 flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/d5a917bab40daf4e5f82cd27162b8a6656d3beab' (2023-12-25)
  → 'github:nix-community/home-manager/80679ea5074ab7190c4cce478c600057cfb5edae' (2023-12-25)
• Updated input 'nixpkgs-stable':
    'github:NixOS/nixpkgs/0fcb94fb63231092733b5d367fd56110bedcec41' (2023-12-25)
  → 'github:NixOS/nixpkgs/e173e2e409e2bcc977d8726178d7943dabb83ce0' (2023-12-26)
2023-12-25 20:12:14 -08:00
5db210cee5 added handy aliases 2023-12-25 18:55:28 -08:00
8af064577f removed old file 2023-12-25 18:51:11 -08:00
ad9ab630b8 moved options to shared config 2023-12-25 18:51:00 -08:00
cef046b235 set windows boot entry to static value 2023-12-25 18:50:36 -08:00
e59e776f15 alphabetized imports; added back fusama 2023-12-25 18:50:01 -08:00
1c3255f268 cleaned up the configuration 2023-12-25 18:38:17 -08:00
9 changed files with 94 additions and 179 deletions

View file

@ -160,11 +160,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1703499046, "lastModified": 1703527373,
"narHash": "sha256-A6wclPJCOMEYuD28KBOBTwHEVOKy3f9yvuMFAJ55dco=", "narHash": "sha256-AjypRssRtS6F3xkf7rE3/bXkIF2WJOZLbTIspjcE1zM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d5a917bab40daf4e5f82cd27162b8a6656d3beab", "rev": "80679ea5074ab7190c4cce478c600057cfb5edae",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -230,11 +230,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1703520782, "lastModified": 1703550282,
"narHash": "sha256-G5hdGOjRHP6PwX3yFkCVBipy4Tv4mZZo7slLAvehsf8=", "narHash": "sha256-G8DrHbmocUO4bzmi12w+5hvLhElhqlQfbV/OTQowEPo=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0fcb94fb63231092733b5d367fd56110bedcec41", "rev": "e173e2e409e2bcc977d8726178d7943dabb83ce0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -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;

View file

@ -90,14 +90,15 @@ in
imports = [ imports = [
./modules/discord.nix ./modules/discord.nix
#./modules/emacs.nix #./modules/emacs.nix
./modules/fusuma.nix
./modules/git.nix ./modules/git.nix
./modules/neovim.nix ./modules/hyprland
./modules/kitty.nix ./modules/kitty.nix
./modules/neovim.nix
./modules/rofi.nix ./modules/rofi.nix
./modules/tmux.nix ./modules/tmux.nix
./modules/wezterm.nix ./modules/wezterm.nix
./modules/xdg.nix ./modules/xdg.nix
./modules/hyprland
./modules/yazi.nix ./modules/yazi.nix
./modules/zsh.nix ./modules/zsh.nix
]; ];
@ -105,9 +106,10 @@ in
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.direnv = {
programs.direnv.enable = true; enable = true;
programs.direnv.nix-direnv.enable = true; nix-direnv.enable = true;
};
home = { home = {

View file

@ -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

View file

@ -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";
}; };

View file

@ -1,87 +0,0 @@
{ lib, inputs, nixpkgs, home-manager, user, kmonad, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
NicksNixLaptop = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./laptop
./configuration.nix
../modules/plasma_desktop.nix
../modules/kmonad.nix
{
networking.hostName = "NicksNixLaptop";
}
kmonad.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
../users/${user}.nix
../modules/emacs.nix
../modules/git.nix
../modules/fusuma.nix
../modules/vim.nix
../modules/wezterm.nix
../modules/xdg.nix
../modules/zsh.nix
];
};
};
}
];
};
NixsServer = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./nixsserver
./nixsserver/configuration.nix
{
networking.hostName = "NicksServer";
}
];
};
NicksNixVMBox = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./virtualbox
./configuration.nix
../modules/plasma_desktop.nix
../modules/kmonad.nix
{
networking.hostName = "NicksNixVMBox";
}
kmonad.nixosModules.default
home-manager.nixosModules.home-manager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
./home.nix
../modules/git.nix
../modules/urxvt.nix
../modules/vim.nix
../modules/zsh.nix
];
};
};
}
];
};
}

View file

@ -1,4 +1,4 @@
{ config, user, ... }: { config, ... }:
{ {
@ -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";
@ -50,15 +47,12 @@
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware.nvidia.modesetting.enable = true; hardware.nvidia.modesetting.enable = true;
hardware.bluetooth.enable = true;
environment.sessionVariables = { environment.sessionVariables = {
# Resolves jellyfin black screen under hyprland # Resolves jellyfin black screen under hyprland
# See also: https://github.com/jellyfin/jellyfin-media-player/issues/165#issuecomment-1030690851 # See also: https://github.com/jellyfin/jellyfin-media-player/issues/165#issuecomment-1030690851
QT_QPA_PLATFORM = "xcb"; QT_QPA_PLATFORM = "xcb";
}; };
time.hardwareClockInLocalTime = true;
boot.loader = { boot.loader = {
efi = { efi = {
@ -85,6 +79,4 @@
''; '';
}; };
}; };
boot.supportedFilesystems = [ "ntfs" ];
} }

View file

@ -1,4 +1,4 @@
{ config, user, ... }: { config, ... }:
{ {
imports = [ imports = [
@ -6,38 +6,36 @@
./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 = {
canTouchEfiVariables = true; efiSysMountPoint = "/boot"; efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
}; };
grub = { grub = {
devices = [ "nodev" ]; devices = [ "nodev" ];
efiSupport = true; efiSupport = true;
enable = true; enable = true;
useOSProber = true; useOSProber = false;
# extraEntries = '' extraEntries = ''
# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
# --class os $menuentry_id_option 'osprober-efi-364F-BE7A' { insmod part_gpt
# insmod part_gpt insmod fat search --no-floppy --fs-uuid insmod fat
# --set=root 364F-BE7A chainloader search --no-floppy --fs-uuid --set=root 364F-BE7A
# /efi/Microsoft/Boot/bootmgfw.efi chainloader /efi/Microsoft/Boot/bootmgfw.efi
# } }
# '';
'';
}; };
}; };

View file

@ -43,12 +43,14 @@ in
cat = "bat"; cat = "bat";
ls = "eza"; ls = "eza";
jq = "jaq"; jq = "jaq";
gust = "/home/nixolas/Documents/Gust/target/debug/gust"; # gust = "/home/nixolas/Documents/Gust/target/debug/gust";
rm = "rmtrash"; rm = "rmtrash";
open-config = "cd ~/Documents/nicks-nix-config; nvim"; open-config = "cd ~/Documents/nicks-nix-config; nvim";
switch-to-windows = "sudo grub-reboot 1; sudo reboot"; switch-to-windows = "sudo grub-reboot 1; sudo reboot";
screenshot = "grim -g \"$(slurp -d)\" - | wl-copy -t image/png"; screenshot = "grim -g \"$(slurp -d)\" - | wl-copy -t image/png";
move-to-alaska = "ssh nixolas@100.64.0.1"; move-to-alaska = "ssh nixolas@100.64.0.1";
rebuild-shutdown = "sudo nixos-rebuild switch --flake .# && shutdown now";
rebuild-exit = "sudo nixos-rebuild switch --flake .# && exit";
}; };
}; };