add restruct2
This commit is contained in:
36
home/core/adam.nix
Normal file
36
home/core/adam.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./git
|
||||
./hypr
|
||||
./shell/adam.nix
|
||||
./appearance
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# Desktop
|
||||
alacritty
|
||||
wl-clipboard
|
||||
keepassxc
|
||||
ranger
|
||||
webcord
|
||||
xfce.thunar
|
||||
xfce.thunar-volman
|
||||
xfce.thunar-archive-plugin
|
||||
gnome.file-roller
|
||||
wireguard-tools
|
||||
wpa_supplicant
|
||||
ntfs3g
|
||||
kdePackages.polkit-kde-agent-1
|
||||
networkmanagerapplet
|
||||
htop
|
||||
btop
|
||||
pamixer
|
||||
qbittorrent
|
||||
fastfetch
|
||||
waybar
|
||||
nwg-look
|
||||
thefuck
|
||||
calcurse
|
||||
gnome.adwaita-icon-theme
|
||||
];
|
||||
}
|
||||
29
home/core/appearance/default.nix
Normal file
29
home/core/appearance/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [ ./gtk.nix ];
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
desktop = "${config.home.homeDirectory}/desktop";
|
||||
documents = "${config.home.homeDirectory}/documents";
|
||||
download = "${config.home.homeDirectory}/downloads";
|
||||
music = "${config.home.homeDirectory}/media/music";
|
||||
pictures = "${config.home.homeDirectory}/media/images";
|
||||
publicShare = "${config.home.homeDirectory}/documents/share";
|
||||
templates = "${config.home.homeDirectory}/documents/templates";
|
||||
videos = "${config.home.homeDirectory}/media/videos";
|
||||
};
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
};
|
||||
};
|
||||
dconf = {
|
||||
settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/core/appearance/gtk.nix
Normal file
23
home/core/appearance/gtk.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.pointerCursor = {
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
size = 24;
|
||||
};
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
package = pkgs.orchis-theme;
|
||||
name = "Orchis-Grey-Dark-Compact";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.gruvbox-plus-icons;
|
||||
name = "Gruvbox-Plus-Dark";
|
||||
};
|
||||
font = {
|
||||
name = "FiraCode Nerd Font Light";
|
||||
size = 11;
|
||||
};
|
||||
};
|
||||
}
|
||||
37
home/core/cnst.nix
Normal file
37
home/core/cnst.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./git
|
||||
./hypr
|
||||
./shell/cnst.nix
|
||||
./appearance
|
||||
];
|
||||
home.packages = with pkgs; [
|
||||
# Desktop
|
||||
alacritty
|
||||
wl-clipboard
|
||||
keepassxc
|
||||
ranger
|
||||
webcord
|
||||
xfce.thunar
|
||||
xfce.thunar-volman
|
||||
xfce.thunar-archive-plugin
|
||||
gnome.file-roller
|
||||
wireguard-tools
|
||||
wpa_supplicant
|
||||
ntfs3g
|
||||
kdePackages.polkit-kde-agent-1
|
||||
networkmanagerapplet
|
||||
htop
|
||||
btop
|
||||
pamixer
|
||||
virt-manager
|
||||
qbittorrent
|
||||
fastfetch
|
||||
waybar
|
||||
nwg-look
|
||||
thefuck
|
||||
calcurse
|
||||
gnome.adwaita-icon-theme
|
||||
];
|
||||
}
|
||||
7
home/core/git/default.nix
Normal file
7
home/core/git/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "cnst";
|
||||
userEmail = "cnst@cana.st";
|
||||
};
|
||||
}
|
||||
54
home/core/hypr/default.nix
Normal file
54
home/core/hypr/default.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../mako ];
|
||||
|
||||
xdg.portal =
|
||||
let
|
||||
hyprland = config.wayland.windowManager.hyprland.package;
|
||||
xdph = pkgs.xdg-desktop-portal-hyprland.override { inherit hyprland; };
|
||||
in
|
||||
{
|
||||
extraPortals = [ xdph ];
|
||||
configPackages = [ hyprland ];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grimblast
|
||||
slurp
|
||||
hyprpicker
|
||||
swaybg
|
||||
tofi
|
||||
gnome.gnome-calculator
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
BROWSER = "firefox";
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
NIXOS_OZONE_WL = 1;
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
LIBSEAT_BACKEND = "logind";
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
xwayland.enable = true;
|
||||
extraConfig = ''
|
||||
${builtins.readFile ./hyprland.conf}
|
||||
'';
|
||||
systemd = {
|
||||
enable = true;
|
||||
extraCommands = [
|
||||
"systemctl --user stop graphical-session.target"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
7
home/core/hypr/hyprland.conf
Normal file
7
home/core/hypr/hyprland.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
# HYPRLAND CONFIGURATION
|
||||
|
||||
source=./land/appearance.conf
|
||||
source=./land/inputs.conf
|
||||
source=./land/keybinds.conf
|
||||
source=./land/rules.conf
|
||||
source=./land/startup.conf
|
||||
35
home/core/shell/adam.nix
Normal file
35
home/core/shell/adam.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixconfig = "cd /home/adam/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "sudo nixos-rebuild switch --flake .#adampad";
|
||||
flakeupdate = "nix flake update";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
initExtra = ''
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
eval $(thefuck --alias)
|
||||
eval $(thefuck --alias FUCK)
|
||||
|
||||
eval "$(zellij setup --generate-auto-start zsh)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
35
home/core/shell/cnst.nix
Normal file
35
home/core/shell/cnst.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
shellAliases = {
|
||||
nixconfig = "cd /home/cnst/.nix-config/";
|
||||
ll = "ls -l";
|
||||
nixupdate = "sudo nixos-rebuild switch -v --show-trace --flake .#cnix";
|
||||
flakeupdate = "nix flake update";
|
||||
};
|
||||
history = {
|
||||
size = 1000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"git"
|
||||
"thefuck"
|
||||
];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
initExtra = ''
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
|
||||
eval $(thefuck --alias)
|
||||
eval $(thefuck --alias FUCK)
|
||||
|
||||
eval "$(zellij setup --generate-auto-start zsh)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user