Compare commits

..

No commits in common. "8f04684b00cabc407ad480e771c3036196b9228a" and "315dd99ba9f43f13278555f123025bc58ff11b9b" have entirely different histories.

9 changed files with 94 additions and 148 deletions

View file

@ -62,11 +62,11 @@
"systems": "systems_2"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"lastModified": 1692799911,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44",
"type": "github"
},
"original": {
@ -122,11 +122,11 @@
]
},
"locked": {
"lastModified": 1695224363,
"narHash": "sha256-+hfjJLUMck5G92RVFDZA7LWkR3kOxs5zQ7RPW9t3eM8=",
"lastModified": 1694642908,
"narHash": "sha256-0Opzs/56VW03COlVdoBrHJZGxQ7gzLDEWADnccC8ras=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "408ba13188ff9ce309fa2bdd2f81287d79773b00",
"rev": "b62f549653e97d78392c1e282b8ca76546a86585",
"type": "github"
},
"original": {
@ -141,11 +141,11 @@
},
"locked": {
"dir": "nix",
"lastModified": 1695227806,
"narHash": "sha256-EcChzeEOh2oAZNgvR+kWCBpWomMopK2Zs+0+dvDUJh0=",
"lastModified": 1691843304,
"narHash": "sha256-aLAMpvbQPLkpjJDUWYTYRmEclAQTo+IVzqPQYOfmxfw=",
"owner": "kmonad",
"repo": "kmonad",
"rev": "22da3354e6f629f9294c830d8558875d77b5cffc",
"rev": "a05e93c62ca2c25cc81d76d9cf36880fe0bf183a",
"type": "github"
},
"original": {
@ -191,22 +191,6 @@
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1695283060,
"narHash": "sha256-CJz71xhCLlRkdFUSQEL0pIAAfcnWFXMzd9vXhPrnrEg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "31ed632c692e6a36cfc18083b88ece892f863ed4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable_2": {
"locked": {
"lastModified": 1685801374,
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
@ -256,11 +240,11 @@
},
"nixpkgs_4": {
"locked": {
"lastModified": 1695145219,
"narHash": "sha256-Eoe9IHbvmo5wEDeJXKFOpKUwxYJIOxKUesounVccNYk=",
"lastModified": 1694422566,
"narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5ba549eafcf3e33405e5f66decd1a72356632b96",
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
"type": "github"
},
"original": {
@ -272,11 +256,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1694767346,
"narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=",
"lastModified": 1694183432,
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ace5093e36ab1e95cb9463863491bee90d5a4183",
"rev": "db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b",
"type": "github"
},
"original": {
@ -294,11 +278,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1695300485,
"narHash": "sha256-lPxXM584q9AVdUZxbEJgIPVeg39X6GWIENuENRxyHqo=",
"lastModified": 1694341786,
"narHash": "sha256-7xp0lZ0Ihx1f9WLYxOWP73PlM0HOa0Wrp3/iF7D++zc=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "32a64af2318beac3c89d4d1fa0b73ce237c5cf1e",
"rev": "9e6892e8391a5bcc3727802b6a9fb2b9b52537df",
"type": "github"
},
"original": {
@ -343,14 +327,14 @@
"nixvim",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable_2"
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1694364351,
"narHash": "sha256-oadhSCqopYXxURwIA6/Anpe5IAG11q2LhvTJNP5zE6o=",
"lastModified": 1692274144,
"narHash": "sha256-BxTQuRUANQ81u8DJznQyPmRsg63t4Yc+0kcyq6OLz8s=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "4f883a76282bc28eb952570afc3d8a1bf6f481d7",
"rev": "7e3517c03d46159fdbf8c0e5c97f82d5d4b0c8fa",
"type": "github"
},
"original": {
@ -365,7 +349,6 @@
"kmonad": "kmonad",
"nicks_nextcloud_integrations": "nicks_nextcloud_integrations",
"nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable",
"nixvim": "nixvim"
}
},

View file

@ -4,10 +4,10 @@
inputs = {
nixvim.url = "github:nix-community/nixvim";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-23.05";
kmonad.url = "github:kmonad/kmonad?dir=nix";
nicks_nextcloud_integrations.url = "git+https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git";
# dead code?
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
@ -16,29 +16,24 @@
};
outputs = inputs@{ self, nixpkgs, nixpkgs-stable, home-manager, kmonad, ... }:
outputs = inputs@{ self, nixpkgs, home-manager, kmonad, ... }:
let
user = "nixolas";
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in {
nixosConfigurations = {
inherit (nixpkgs) lib;
inherit inputs home-manager user kmonad;
inherit inputs nixpkgs home-manager user kmonad;
# Home server
Alaska = lib.nixosSystem {
inherit system;
specialArgs = {
inherit user;
pkgs-stable = inputs.nixpkgs-stable;
};
specialArgs = { inherit user; };
modules = [
inputs.nicks_nextcloud_integrations.nixosModules.default
@ -51,13 +46,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit user;
pkgs-stable = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./users/${user}.nix)
@ -72,9 +61,7 @@
NicksNixLaptop = lib.nixosSystem {
inherit system;
specialArgs = {
inherit user;
};
specialArgs = { inherit user; };
modules = [
{
@ -88,13 +75,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit user;
pkgs-stable = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./users/${user}.nix)
@ -124,13 +105,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit user;
pkgs-stable = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./users/${user}.nix)

View file

@ -13,15 +13,6 @@
enableKwallet = true;
};
# Some programs look for session variables to store config files at
# (Looking at you home-manager yazi)
environment.sessionVariables = rec {
XDG_CACHE_HOME = "$HOME/.cache";
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_STATE_HOME = "$HOME/.local/state";
};
services.xserver = {
enable = true;
layout = "us";
@ -93,6 +84,7 @@
steam-hardware.enable = true;
};
sound = {
enable = false;
mediaKeys.enable = true;
@ -107,6 +99,7 @@
#jack.enable = true;
};
# Enable CUPS to print documents.
services.printing.enable = true;

View file

@ -37,6 +37,18 @@ in {
../modules/zsh.nix
];
};
users.nicholix = {
imports = [
../users/nicholix.nix
../modules/emacs.nix
../modules/git.nix
../modules/fusuma.nix
../modules/vim.nix
../modules/wezterm.nix
../modules/xdg.nix
../modules/zsh.nix
]
}
};
}
];

View file

@ -1,40 +1,44 @@
{ config, ... }:
{ imports = [
{
imports = [
./hardware-configuration.nix
];
hardware.bluetooth.enable = true;
networking.hosts = {
#"10.0.0.183" = [ "headscale.nickiel.net" ];
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net"
"jellyfin.nickiel.net" ];
"10.0.0.183" = [ "headscale.nickiel.net" ];
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
};
# tailscale set --exit-node <SEVERNAME> to route through an exit node
services.tailscale.enable = true; networking.firewall = {
checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ];
services.tailscale.enable = true;
networking.firewall = {
checkReversePath = "loose";
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
time.hardwareClockInLocalTime = true;
boot.loader = { efi = {
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
devices = [ "nodev" ];
efiSupport = true;
enable = true;
useOSProber = true;
# extraEntries = ''
# menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows
# --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
# insmod part_gpt insmod fat search --no-floppy --fs-uuid
# --set=root 364F-BE7A chainloader
# /efi/Microsoft/Boot/bootmgfw.efi
# }
# '';
useOSProber = false;
extraEntries = ''
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-364F-BE7A' {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 364F-BE7A
chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
'';
};
};

View file

@ -6,8 +6,6 @@ in
home.packages = with pkgs; [
# Required clipboard provider
xclip
# Required for find in file
ripgrep
];
programs.nixvim = {

View file

@ -1,20 +0,0 @@
{ config, lib, pkgs, home-manager, ... }:
{
programs.yazi = {
enable = true;
enableZshIntegration = true;
settings = {
manager = {
sort_by = "natural";
sort_sensitive = false;
sort_dir_first = true;
show_hidden = true;
show_symlink = true;
sort_reverse = false;
};
};
};
}

View file

@ -40,7 +40,6 @@ in
ls = "eza";
gust = "/home/nixolas/Documents/Gust/target/debug/gust";
rm = "rmtrash";
open-config = "cd ~/Documents/nicks-nix-config; nvim";
};
};

View file

@ -1,4 +1,4 @@
{ inputs, config, pkgs, pkgs-stable, user, ... }:
{ inputs, config, pkgs, user, ... }:
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
@ -21,12 +21,12 @@ in
imports = [
../modules/discord.nix
#../modules/emacs.nix
../modules/fusuma.nix
../modules/git.nix
../modules/neovim.nix
../modules/rofi.nix
../modules/wezterm.nix
../modules/xdg.nix
../modules/yazi.nix
../modules/zsh.nix
];
@ -78,45 +78,48 @@ in
bottom # system monitor
du-dust # directory disk-space analyzer
ffmpeg-full # ffmpeg for video/audio rendering
pkgs-stable.frei0r # kdenlive video plugins
pkgs-stable.flameshot # screenshot utility
pkgs-stable.fontpreview # utility to preview fonts
frei0r # kdenlive video plugins
flameshot # screenshot utility
fontpreview # utility to preview fonts
gitui # command line git tui
pkgs-stable.helvum # audio sink gui control
pkgs-stable.pandoc # utility for converting between document types
pkgs-stable.qmk # QMK utility for compiling qmk firmware
helvum # audio sink gui control
pandoc # utility for converting between document types
qmk # QMK utility for compiling qmk firmware
nextcloud-client # Nextcloud private syncing
hddtemp
pkgs-stable.texlive.combined.scheme-medium
texlive.combined.scheme-medium
# commandline utils
eza
fd
fortune
neofetch
pandoc
pfetch
ripgrep
rmtrash
testdisk # file recovery https://itsfoss.com/recover-deleted-files-linux/
xdotool
pkgs-stable.vhs
yazi
vhs
pkgs-stable.nodejs # required for coc-nvim
nodejs # required for coc-nvim
# Gui application
pkgs-stable.darktable # RAW processing
pkgs-stable.dbeaver # SQL management tool
darktable # RAW processing
dbeaver # SQL management tool
firefox # Internet access
pkgs-stable.handbrake # dvd ripping
pkgs-stable.inkscape # Vector drawing
pkgs-stable.kicad # PCB design
handbrake # dvd ripping
inkscape # Vector drawing
kicad # PCB design
krita # Raster drawing
pkgs-stable.libreoffice-fresh # Office editing
pkgs-stable.makemkv # blue-ray + dvd -> mkv
pkgs-stable.obsidian # Markdown and notes
libreoffice-fresh # Office editing
makemkv # blue-ray + dvd -> mkv
obsidian # Markdown and notes
qalculate-gtk # unit-friendly calculator
pkgs-stable.vscodium # when vim and emacs (somehow) isn't enough
pkgs-stable.dragon # simple audio player
vscodium # when vim and emacs (somehow) isn't enough
dragon # simple audio player
obs-studio # for video recording and virtual camera
libsForQt5.kate # kate/kwrite
@ -126,9 +129,9 @@ in
libsForQt5.soundkonverter # audio cd ripping
# Kdenlive and deps
pkgs-stable.libsForQt5.kdenlive
pkgs-stable.mediainfo
pkgs-stable.mlt
libsForQt5.kdenlive
mediainfo
mlt
# Drawing tablet driver
opentabletdriver
@ -136,7 +139,6 @@ in
sessionVariables = {
NIX_SHELL_PRESERVE_PROMPT = 1;
EDITOR = "nvim";
};
};