make everything more modular + basic kitagawa config using gnome
This commit is contained in:
14 files changed
+202
-168
No files matched your search
@@ -2,6 +2,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
|
||||||
|
|
||||||
programs.fastfetch = {
|
programs.fastfetch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
confirm_os_window_close = -1;
|
||||||
|
};
|
||||||
|
|
||||||
|
shellIntegration.enableBashIntegration = true;
|
||||||
|
themeFile = "Arthur";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.shell.enableZshIntegration = true;
|
||||||
|
|
||||||
|
programs.kitty.shellIntegration.enableZshIntegration = true;
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
antidote = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"getantidote/use-omz"
|
||||||
|
"ohmyzsh/ohmyzsh path:lib"
|
||||||
|
"ohmyzsh/ohmyzsh path:plugins/pip"
|
||||||
|
"ohmyzsh/ohmyzsh path:plugins/command-not-found"
|
||||||
|
"ohmyzsh/ohmyzsh path:themes/nanotech.zsh-theme"
|
||||||
|
"zsh-users/zsh-autosuggestions"
|
||||||
|
"zsh-users/zsh-syntax-highlighting"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
localVariables = {
|
||||||
|
PATH = "/home/grey/.local/bin:$PATH";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
-4
@@ -4,6 +4,10 @@
|
|||||||
specialArgs,
|
specialArgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
includes = [
|
||||||
|
/hosts/${specialArgs.hostname}/hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
networking.hostName = specialArgs.hostname; # Define your hostname.
|
networking.hostName = specialArgs.hostname; # Define your hostname.
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
nix.settings.experimental-features = [
|
||||||
@@ -59,10 +63,9 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
pkgs.pipewire
|
git
|
||||||
pkgs.git
|
fzf
|
||||||
pkgs.fzf
|
jq
|
||||||
pkgs.jq
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
modules-dir = ../../modules;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
../../global-default.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
"${modules-dir}/nh.nix"
|
||||||
|
"${modules-dir}/home-manager.nix"
|
||||||
|
"${modules-dir}/zsh.nix"
|
||||||
|
"${modules-dir}/display-managers/gdm.nix"
|
||||||
|
"${modules-dir}/desktop-environments/gnome.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
# started in user sessions.
|
||||||
|
# programs.mtr.enable = true;
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
# services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
global-configs = ../../global-configs;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
../../global-home.nix
|
||||||
|
"${global-configs}/fastfetch.nix"
|
||||||
|
"${global-configs}/zsh.nix"
|
||||||
|
"${global-configs}/kitty.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
equibop
|
||||||
|
obsidian
|
||||||
|
github-desktop
|
||||||
|
vscode
|
||||||
|
thunderbird
|
||||||
|
spotify
|
||||||
|
jetbrains.clion
|
||||||
|
jetbrains.idea
|
||||||
|
proton-vpn
|
||||||
|
ente-auth
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
firefox-addons = with pkgs; inputs.firefox-addons.packages.${system};
|
|
||||||
in {
|
|
||||||
programs.zen-browser = {
|
|
||||||
enable = true;
|
|
||||||
setAsDefaultBrowser = true;
|
|
||||||
nativeMessagingHosts = [
|
|
||||||
pkgs.firefoxpwa
|
|
||||||
];
|
|
||||||
policies = {
|
|
||||||
AutofillAddressEnabled = false;
|
|
||||||
AutofillCreditCardEnabled = false;
|
|
||||||
DisableAppUpdate = true;
|
|
||||||
DisableFeedbackCommands = true;
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
DisablePocket = true;
|
|
||||||
DisableTelemetry = true;
|
|
||||||
NoDefaultBookmarks = true;
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
EnableTrackingProtection = {
|
|
||||||
Value = true;
|
|
||||||
Locked = true;
|
|
||||||
Cryptomining = true;
|
|
||||||
Fingerprinting = true;
|
|
||||||
};
|
|
||||||
Preferences = {
|
|
||||||
"browser.startup.homepage" = {
|
|
||||||
Value = "about:blank";
|
|
||||||
Status = "locked";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
profiles.default = {
|
|
||||||
settings = {
|
|
||||||
"zen.urlbar.behavior" = "float";
|
|
||||||
"zen.welcome-screen.seen" = true;
|
|
||||||
};
|
|
||||||
extensions.packages = with firefox-addons; [
|
|
||||||
adnauseam
|
|
||||||
bitwarden
|
|
||||||
indie-wiki-buddy
|
|
||||||
pwas-for-firefox
|
|
||||||
];
|
|
||||||
search = {
|
|
||||||
force = true;
|
|
||||||
default = "ddg";
|
|
||||||
engines = {
|
|
||||||
nixpkgs = {
|
|
||||||
name = "nixpkgs packages";
|
|
||||||
urls = [
|
|
||||||
{
|
|
||||||
template = "https://search.nixos.org/packages?query={searchTerms}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
icon = "https://wiki.nixos.org/favicon.ico";
|
|
||||||
definedAliases = ["@np"];
|
|
||||||
};
|
|
||||||
nixos-options = {
|
|
||||||
name = "NixOS options";
|
|
||||||
urls = [
|
|
||||||
{
|
|
||||||
template = "https://search.nixos.org/options?query={searchTerms}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
icon = "https://wiki.nixos.org/favicon.ico";
|
|
||||||
definedAliases = ["@no"];
|
|
||||||
};
|
|
||||||
nixos-wiki = {
|
|
||||||
name = "NixOS Wiki";
|
|
||||||
urls = [
|
|
||||||
{
|
|
||||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
icon = "https://wiki.nixos.org/favicon.ico";
|
|
||||||
definedAliases = ["@nw"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
#keyboardShortcuts = [
|
|
||||||
# {
|
|
||||||
# id = "zen"
|
|
||||||
# }
|
|
||||||
#];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -13,8 +13,10 @@ in {
|
|||||||
../../global-default.nix
|
../../global-default.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
"${modules-dir}/nh.nix"
|
"${modules-dir}/nh.nix"
|
||||||
"${modules-dir}/plasma-desktop.nix"
|
"${modules-dir}/display-managers/sddm.nix"
|
||||||
|
"${modules-dir}/desktop-environments/plasma6.nix"
|
||||||
"${modules-dir}/home-manager.nix"
|
"${modules-dir}/home-manager.nix"
|
||||||
|
"${modules-dir}/zsh.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
@@ -26,10 +28,6 @@ in {
|
|||||||
virtualisation.virtualbox.guest.enable = true;
|
virtualisation.virtualbox.guest.enable = true;
|
||||||
virtualisation.virtualbox.guest.dragAndDrop = true;
|
virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
users.defaultUserShell = pkgs.zsh;
|
|
||||||
users.users."grey".shell = pkgs.zsh;
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|||||||
+22
-56
@@ -5,67 +5,33 @@
|
|||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
global-configs-dir = ../../global-configs;
|
global-configs = ../../global-configs;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../global-home.nix
|
../../global-home.nix
|
||||||
"${global-configs-dir}/plasma.nix"
|
"${global-configs}/plasma.nix"
|
||||||
"${global-configs-dir}/fastfetch.nix"
|
"${global-configs}/fastfetch.nix"
|
||||||
"${global-configs-dir}/zen-browser.nix"
|
"${global-configs}/zen-browser.nix"
|
||||||
|
"${global-configs}/zsh.nix"
|
||||||
|
"${global-configs}/kitty.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs.steam
|
steam
|
||||||
pkgs.equibop
|
equibop
|
||||||
pkgs.prismlauncher
|
prismlauncher
|
||||||
pkgs.obsidian
|
obsidian
|
||||||
pkgs.github-desktop
|
github-desktop
|
||||||
pkgs.vscode
|
vscode
|
||||||
pkgs.thunderbird
|
thunderbird
|
||||||
pkgs.spotify
|
spotify
|
||||||
pkgs.unityhub
|
unityhub
|
||||||
pkgs.godot
|
godot
|
||||||
pkgs.jetbrains.clion
|
jetbrains.clion
|
||||||
pkgs.jetbrains.idea
|
jetbrains.idea
|
||||||
pkgs.obs-studio
|
obs-studio
|
||||||
pkgs.proton-vpn
|
proton-vpn
|
||||||
pkgs.ente-auth
|
ente-auth
|
||||||
pkgs.lact
|
lact
|
||||||
];
|
];
|
||||||
|
|
||||||
home.shell.enableZshIntegration = true;
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
antidote = {
|
|
||||||
enable = true;
|
|
||||||
plugins = [
|
|
||||||
"getantidote/use-omz"
|
|
||||||
"ohmyzsh/ohmyzsh path:lib"
|
|
||||||
"ohmyzsh/ohmyzsh path:plugins/pip"
|
|
||||||
"ohmyzsh/ohmyzsh path:plugins/command-not-found"
|
|
||||||
"ohmyzsh/ohmyzsh path:themes/nanotech.zsh-theme"
|
|
||||||
"zsh-users/zsh-autosuggestions"
|
|
||||||
"zsh-users/zsh-syntax-highlighting"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
localVariables = {
|
|
||||||
PATH = "/home/grey/.local/bin:$PATH";
|
|
||||||
};
|
|
||||||
|
|
||||||
initContent = lib.mkOrder 1500 "fastfetch";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
confirm_os_window_close = -1;
|
|
||||||
};
|
|
||||||
|
|
||||||
shellIntegration.enableBashIntegration = true;
|
|
||||||
shellIntegration.enableZshIntegration = true;
|
|
||||||
themeFile = "Arthur";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
|
# To disable installing GNOME's suite of applications
|
||||||
|
# and only be left with GNOME shell.
|
||||||
|
services.gnome = {
|
||||||
|
core-apps.enable = false;
|
||||||
|
core-developer-tools.enable = false;
|
||||||
|
games.enable = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.gnome.excludePackages = with pkgs; [
|
||||||
|
gnome-tour
|
||||||
|
gnome-user-docs
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.desktopManager.plasma6 = {
|
||||||
|
enable = true;
|
||||||
|
enableQt5Integration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||||
|
konsole
|
||||||
|
qrca
|
||||||
|
];
|
||||||
|
|
||||||
|
services.displayManager.defaultSession = "plasma";
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.displayManager.gdm.enable = true;
|
||||||
|
}
|
||||||
@@ -3,18 +3,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services.desktopManager.plasma6 = {
|
|
||||||
enable = true;
|
|
||||||
enableQt5Integration = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
|
||||||
konsole
|
|
||||||
qrca
|
|
||||||
];
|
|
||||||
|
|
||||||
services.displayManager.defaultSession = "plasma";
|
|
||||||
|
|
||||||
services.displayManager.sddm = {
|
services.displayManager.sddm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "breeze";
|
theme = "breeze";
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
users.users."grey".shell = pkgs.zsh;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user