Better organization :')
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
./modules/desktop.nix
|
||||
./modules/audio.nix
|
||||
./modules/users.nix
|
||||
./modules/packages.nix
|
||||
./modules/programs.nix
|
||||
./modules/hardware.nix
|
||||
./modules/services.nix
|
||||
./modules/aliases.nix
|
||||
|
||||
@@ -3,6 +3,16 @@
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz";
|
||||
settings = import ../settings.nix;
|
||||
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
||||
inherit pkgs;
|
||||
};
|
||||
homeModules = [
|
||||
./home/session.nix
|
||||
./home/packages.nix
|
||||
./home/firefox.nix
|
||||
./home/git.nix
|
||||
./home/gnome.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@@ -11,86 +21,12 @@ in
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit settings nur;
|
||||
};
|
||||
|
||||
home-manager.users.${settings.username} = { pkgs, ... }: {
|
||||
home-manager.users.${settings.username} = { ... }: {
|
||||
imports = homeModules;
|
||||
home.stateVersion = "25.11";
|
||||
|
||||
home.sessionVariables = {
|
||||
BROWSER = "librewolf";
|
||||
SSH_AUTH_SOCK = "/home/${settings.username}/.bitwarden-ssh-agent.sock";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Browsers and comms
|
||||
discord
|
||||
signal-desktop
|
||||
librewolf
|
||||
|
||||
# Development tools
|
||||
go
|
||||
cargo
|
||||
gnumake
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
nodejs_24
|
||||
openssh
|
||||
nodePackages."pnpm"
|
||||
openssl
|
||||
killall
|
||||
ffmpeg
|
||||
zed-editor
|
||||
vscodium
|
||||
usbutils
|
||||
qmk
|
||||
ghostty
|
||||
neofetch
|
||||
deepfilternet
|
||||
pavucontrol
|
||||
texliveFull
|
||||
|
||||
# Desktop applications
|
||||
bitwarden-desktop
|
||||
vlc
|
||||
streamrip
|
||||
cider-2
|
||||
zotero
|
||||
prismlauncher
|
||||
lrcget
|
||||
impression
|
||||
streamcontroller
|
||||
onlyoffice-desktopeditors
|
||||
|
||||
# Gnome Extensions
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.just-perfection
|
||||
gnomeExtensions.arc-menu
|
||||
gnomeExtensions.appindicator
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gpg.format = "ssh";
|
||||
commit.gpgsign = true;
|
||||
user = {
|
||||
name = settings.gitName;
|
||||
email = settings.gitEmail;
|
||||
signingkey = settings.gitKey;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
accent-color = "pink";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/background" = {
|
||||
picture-uri = "file:///home/${settings.username}/Assets/wallpapers/unicat.png";
|
||||
picture-uri-dark = "file:///home/${settings.username}/Assets/wallpapers/unicat.png";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
17
modules/home/firefox.nix
Normal file
17
modules/home/firefox.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ pkgs, nur, ... }:
|
||||
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.librewolf;
|
||||
|
||||
profiles.default = {
|
||||
id = 0;
|
||||
extensions = with nur.repos.rycee.firefox-addons; [
|
||||
bitwarden
|
||||
floccus
|
||||
ublock-origin
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
17
modules/home/git.nix
Normal file
17
modules/home/git.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ settings, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
gpg.format = "ssh";
|
||||
commit.gpgsign = true;
|
||||
user = {
|
||||
name = settings.gitName;
|
||||
email = settings.gitEmail;
|
||||
signingkey = settings.gitPubKey;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/home/gnome.nix
Normal file
15
modules/home/gnome.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
accent-color = "pink";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/background" = {
|
||||
picture-uri = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
||||
picture-uri-dark = "file://${config.home.homeDirectory}/Assets/wallpapers/unicat.png";
|
||||
};
|
||||
};
|
||||
}
|
||||
50
modules/home/packages.nix
Normal file
50
modules/home/packages.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# Browsers and comms
|
||||
discord
|
||||
signal-desktop
|
||||
|
||||
# Development tools
|
||||
go
|
||||
cargo
|
||||
gnumake
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
nodejs_24
|
||||
openssh
|
||||
nodePackages."pnpm"
|
||||
openssl
|
||||
killall
|
||||
ffmpeg
|
||||
zed-editor
|
||||
vscodium
|
||||
usbutils
|
||||
qmk
|
||||
ghostty
|
||||
neofetch
|
||||
deepfilternet
|
||||
pavucontrol
|
||||
texliveFull
|
||||
|
||||
# Desktop applications
|
||||
bitwarden-desktop
|
||||
vlc
|
||||
streamrip
|
||||
cider-2
|
||||
zotero
|
||||
prismlauncher
|
||||
lrcget
|
||||
impression
|
||||
streamcontroller
|
||||
onlyoffice-desktopeditors
|
||||
|
||||
# GNOME Extensions
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.just-perfection
|
||||
gnomeExtensions.arc-menu
|
||||
gnomeExtensions.appindicator
|
||||
];
|
||||
}
|
||||
8
modules/home/session.nix
Normal file
8
modules/home/session.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
home.sessionVariables = {
|
||||
BROWSER = "librewolf";
|
||||
SSH_AUTH_SOCK = "${config.home.homeDirectory}/.bitwarden-ssh-agent.sock";
|
||||
};
|
||||
}
|
||||
@@ -7,5 +7,5 @@
|
||||
userGroups = [ "networkmanager" "wheel" "docker" "plugdev" ];
|
||||
gitName = "Atridad Lahiji";
|
||||
gitEmail = "me@atri.dad";
|
||||
gitKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILKb+pDgkHEKI7LDWvZbhoLJ11uJMaCmVyAqotDxNOI7 me@atri.dad";
|
||||
gitPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILKb+pDgkHEKI7LDWvZbhoLJ11uJMaCmVyAqotDxNOI7 me@atri.dad";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user