Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-05 00:02:22 +01:00
parent b4768eef70
commit fad689f16d
7 changed files with 51 additions and 40 deletions

View file

@ -2,19 +2,17 @@
, ... , ...
}: }:
{ {
home = { home.sessionPath = [ "$HOME/bin" ];
username = "harald";
homeDirectory = "/home/${config.home.username}";
stateVersion = "23.11"; # Please read the comment before changing.
sessionPath = [ "$HOME/bin" ];
};
plusultra = { plusultra = {
user = {
enable = true;
name = config.snowfallorg.user.name;
};
cli-apps = { cli-apps = {
bash.enable = true; bash.enable = true;
fish.enable = true; fish.enable = true;
neovim.enable = true; neovim.enable = true;
tmux.enable = true;
bat.enable = true; bat.enable = true;
starship.enable = true; starship.enable = true;
home-manager.enable = true; home-manager.enable = true;
@ -23,7 +21,6 @@
git.enable = true; git.enable = true;
direnv.enable = true; direnv.enable = true;
ssh.enable = true; ssh.enable = true;
# jetbrains.enable = true;
}; };
}; };

View file

@ -36,18 +36,18 @@ in
}; };
}]; }];
shellInit = # shellInit =
'' # ''
# nix # # nix
if test -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh # if test -e /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
fenv source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh # fenv source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
end # end
#
# home-manager # # home-manager
if test -e $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh # if test -e $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
fenv source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh # fenv source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
end # end
''; # '';
}; };
}; };
} }

View file

@ -71,7 +71,6 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bat bat
cachix
cardpeek cardpeek
ccache ccache
clang clang

View file

@ -61,7 +61,6 @@ in
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = users; trusted-users = users;
allowed-users = users; allowed-users = users;
allowUnfree = true;
substituters = substituters =
[ cfg.default-substituter.url ] [ cfg.default-substituter.url ]

View file

@ -109,6 +109,7 @@ with lib.plusultra;
freetype freetype
glib glib
openssl openssl
tmux
# ... # ...
]; ];

View file

@ -1,7 +1,6 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
with lib; with lib;
with lib.plusultra; with lib.plusultra;
{ {
imports = imports =
[ [
@ -10,7 +9,10 @@ with lib.plusultra;
]; ];
plusultra.gui.enable = true; plusultra.gui.enable = true;
plusultra.nix.enable = true;
plusultra.nix.extra-substituters = {
"https://nixsgx.cachix.org".key = "nixsgx.cachix.org-1:tGi36DlY2joNsIXOlGnSgWW0+E094V6hW0umQRo/KoE=";
};
boot = { boot = {
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
@ -30,9 +32,11 @@ with lib.plusultra;
}; };
environment = { environment = {
sessionVariables = { PATH = "$HOME/bin:$HOME/.cargo/bin"; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
age age
appimage-run bash
cachix
cifs-utils cifs-utils
clevis clevis
delta delta
@ -41,7 +45,6 @@ appimage-run
git-delete-merged-branches git-delete-merged-branches
home-manager home-manager
htop htop
mdadm
mosh mosh
nixpkgs-fmt nixpkgs-fmt
openssl openssl
@ -154,20 +157,29 @@ appimage-run
# Sets up all the libraries to load # Sets up all the libraries to load
programs.nix-ld.libraries = with pkgs; [ programs.nix-ld.libraries = with pkgs; [
appimage-run
stdenv.cc.cc
libclang.lib
zlib
fuse3
fuse
icu
nss
curl curl
expat expat
fontconfig
freetype freetype
fuse
fuse3
glib glib
icu
libclang.lib
libdbusmenu
libxcrypt-legacy
libxml2
nss
openssl openssl
# ... python3
stdenv.cc.cc
xorg.libX11
xorg.libXext
xorg.libXi
xorg.libXrender
xorg.libXtst
xz
zlib
]; ];
} }

View file

@ -5,7 +5,8 @@
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "usbhid" "sd_mod" ];
@ -14,7 +15,8 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/1106202c-c3bf-4c15-b7cd-e78749e5c955"; {
device = "/dev/disk/by-uuid/1106202c-c3bf-4c15-b7cd-e78749e5c955";
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=@" ]; options = [ "subvol=@" ];
}; };
@ -22,7 +24,8 @@
boot.initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502".device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502"; boot.initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502".device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/13C4-A825"; {
device = "/dev/disk/by-uuid/13C4-A825";
fsType = "vfat"; fsType = "vfat";
}; };