fix remaining issues, add app configs, fix gnome theme
Signed-off-by: Jo <johannesreckers2006@gmail.com>
This commit is contained in:
parent
742706fe0f
commit
c06c55a000
10 changed files with 177 additions and 62 deletions
17
homes/x86_64-linux/jo@puzzlevision/apps/fish.nix
Normal file
17
homes/x86_64-linux/jo@puzzlevision/apps/fish.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
|
||||||
|
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||||
|
home, # The home architecture for this host (eg. `x86_64-linux`).
|
||||||
|
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||||
|
format, # A normalized name for the home target (eg. `home`).
|
||||||
|
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||||
|
host, # The host name for this home.
|
||||||
|
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.file.".config/fish/themes/Catppuccin\ Frappe.theme".source = lib.snowfall.fs.get-file "resources/apps/fish/Catppuccin\ Frappe.theme";
|
||||||
|
}
|
68
homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix
Normal file
68
homes/x86_64-linux/jo@puzzlevision/apps/gnome.nix
Normal file
|
@ -0,0 +1,68 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
|
||||||
|
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||||
|
home, # The home architecture for this host (eg. `x86_64-linux`).
|
||||||
|
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||||
|
format, # A normalized name for the home target (eg. `home`).
|
||||||
|
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||||
|
host, # The host name for this home.
|
||||||
|
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs.gnomeExtensions; [
|
||||||
|
dash-to-dock
|
||||||
|
user-themes
|
||||||
|
blur-my-shell
|
||||||
|
appindicator
|
||||||
|
unite
|
||||||
|
color-picker
|
||||||
|
];
|
||||||
|
|
||||||
|
# Use `dconf watch /` to track stateful changes you are doing, then set them here.
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/shell" = {
|
||||||
|
favorite-apps = [
|
||||||
|
"org.gnome.Nautilus.desktop"
|
||||||
|
"firefox.desktop"
|
||||||
|
"spotify.desktop"
|
||||||
|
"phpstorm.desktop"
|
||||||
|
];
|
||||||
|
|
||||||
|
enabled-extensions = [
|
||||||
|
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||||
|
"dash-to-dock@micxgx.gmail.com"
|
||||||
|
"blur-my-shell@aunetx"
|
||||||
|
"appindicatorsupport@rgcjonas.gmail.com"
|
||||||
|
"unite@hardpixel.eu"
|
||||||
|
"color-picker@tuberry"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
|
workspace-names = [ "Main" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/extensions/unite" = {
|
||||||
|
use-activities-text = false;
|
||||||
|
extend-left-box = false;
|
||||||
|
reduce-panel-spacing = false;
|
||||||
|
window-buttons-placement = "first";
|
||||||
|
show-legacy-tray = false;
|
||||||
|
show-appmenu-button = false;
|
||||||
|
show-desktop-name = false;
|
||||||
|
enable-titlebar-actions = false;
|
||||||
|
restrict-to-primary-screen = true;
|
||||||
|
hide-activities-button = "never";
|
||||||
|
hide-window-titlebars = "maximized";
|
||||||
|
show-window-title = false;
|
||||||
|
autofocus-windows = true;
|
||||||
|
show-window-buttons = "maximized";
|
||||||
|
notifications-position = "right";
|
||||||
|
window-buttons-theme = "catppuccin";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,12 +19,6 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
|
||||||
inputs.homeModules.themes.catppuccin
|
|
||||||
inputs.homeModules.themes.catppuccin.gnome
|
|
||||||
inputs.homeModules.development.ssh
|
|
||||||
];
|
|
||||||
|
|
||||||
# Flatpak configuration.
|
# Flatpak configuration.
|
||||||
services.flatpak = {
|
services.flatpak = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -67,4 +61,6 @@
|
||||||
### Backups & Synchronization
|
### Backups & Synchronization
|
||||||
celeste
|
celeste
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.stateVersion = "24.05";
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
|
|
||||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||||
home, # The home architecture for this host (eg. `x86_64-linux`).
|
system, # The home architecture for this host (eg. `x86_64-linux`).
|
||||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||||
format, # A normalized name for the home target (eg. `home`).
|
format, # A normalized name for the home target (eg. `home`).
|
||||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||||
|
@ -24,7 +24,6 @@ in {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"github.com" = {
|
"github.com" = {
|
||||||
|
@ -45,4 +44,5 @@ in {
|
||||||
user = "git";
|
user = "git";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
|
|
||||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||||
home, # The home architecture for this host (eg. `x86_64-linux`).
|
system,
|
||||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||||
format, # A normalized name for the home target (eg. `home`).
|
format, # A normalized name for the home target (eg. `home`).
|
||||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
|
@ -4,7 +4,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
|
|
||||||
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
namespace, # The flake namespace, set in flake.nix. If not set, defaults to "internal".
|
||||||
home, # The home architecture for this host (eg. `x86_64-linux`).
|
system,
|
||||||
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
target, # The Snowfall Lib target for this home (eg. `x86_64-home`).
|
||||||
format, # A normalized name for the home target (eg. `home`).
|
format, # A normalized name for the home target (eg. `home`).
|
||||||
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
virtual, # A boolean to determine whether this home is a virtual target using nixos-generators.
|
||||||
|
@ -50,5 +50,10 @@
|
||||||
"org/gnome/shell/extensions/user-theme" = {
|
"org/gnome/shell/extensions/user-theme" = {
|
||||||
name = "Colloid-Dark-Catppuccin";
|
name = "Colloid-Dark-Catppuccin";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"/org/gnome/desktop/interface" = {
|
||||||
|
color-scheme = "prefer-dark";
|
||||||
|
cursor-theme = "catppuccin-frappe-blue-cursors";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -13,6 +13,8 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
# Enable GNOME and GDM.
|
# Enable GNOME and GDM.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
@ -22,13 +24,13 @@
|
||||||
gedit
|
gedit
|
||||||
cheese
|
cheese
|
||||||
geary
|
geary
|
||||||
|
yelp # Help view
|
||||||
|
epiphany # Gnome web
|
||||||
]) ++ (with pkgs.gnome; [
|
]) ++ (with pkgs.gnome; [
|
||||||
gnome-music
|
gnome-music
|
||||||
epiphany # Gnome web
|
|
||||||
tali # Poker game
|
tali # Poker game
|
||||||
iagno # Go game
|
iagno # Go game
|
||||||
hitori # Sudoku game
|
hitori # Sudoku game
|
||||||
yelp # Help view
|
|
||||||
gnome-contacts
|
gnome-contacts
|
||||||
gnome-initial-setup
|
gnome-initial-setup
|
||||||
]);
|
]);
|
||||||
|
@ -43,6 +45,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
gnome.gnome-tweaks
|
gnome-tweaks
|
||||||
];
|
];
|
||||||
}
|
}
|
30
resources/apps/fish/Catppuccin Frappe.theme
Normal file
30
resources/apps/fish/Catppuccin Frappe.theme
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# name: 'Catppuccin Frappé'
|
||||||
|
# url: 'https://github.com/catppuccin/fish'
|
||||||
|
# preferred_background: 303446
|
||||||
|
|
||||||
|
fish_color_normal c6d0f5
|
||||||
|
fish_color_command 8caaee
|
||||||
|
fish_color_param eebebe
|
||||||
|
fish_color_keyword e78284
|
||||||
|
fish_color_quote a6d189
|
||||||
|
fish_color_redirection f4b8e4
|
||||||
|
fish_color_end ef9f76
|
||||||
|
fish_color_comment 838ba7
|
||||||
|
fish_color_error e78284
|
||||||
|
fish_color_gray 737994
|
||||||
|
fish_color_selection --background=414559
|
||||||
|
fish_color_search_match --background=414559
|
||||||
|
fish_color_option a6d189
|
||||||
|
fish_color_operator f4b8e4
|
||||||
|
fish_color_escape ea999c
|
||||||
|
fish_color_autosuggestion 737994
|
||||||
|
fish_color_cancel e78284
|
||||||
|
fish_color_cwd e5c890
|
||||||
|
fish_color_user 81c8be
|
||||||
|
fish_color_host 8caaee
|
||||||
|
fish_color_host_remote a6d189
|
||||||
|
fish_color_status e78284
|
||||||
|
fish_pager_color_progress 737994
|
||||||
|
fish_pager_color_prefix f4b8e4
|
||||||
|
fish_pager_color_completion c6d0f5
|
||||||
|
fish_pager_color_description 737994
|
|
@ -24,22 +24,30 @@
|
||||||
inputs.hardware.nixosModules.common-pc-laptop
|
inputs.hardware.nixosModules.common-pc-laptop
|
||||||
inputs.hardware.nixosModules.common-cpu-intel
|
inputs.hardware.nixosModules.common-cpu-intel
|
||||||
inputs.hardware.nixosModules.common-pc-laptop-ssd
|
inputs.hardware.nixosModules.common-pc-laptop-ssd
|
||||||
# FIXME(@jo): Remember to take a look at how module imports work in Snowfall Lib.
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
linuxPackages_latest = prev.linuxPackages_latest.extend (lpfinal: lpprev: {
|
||||||
|
rtl8821ce = lpprev.rtl8821ce.overrideAttrs ({src, ...}: {
|
||||||
|
version = "${lpprev.kernel.version}-unstable-2024-03-26";
|
||||||
|
src = final.fetchFromGitHub {
|
||||||
|
inherit (src) owner repo;
|
||||||
|
rev = "f119398d868b1a3395f40c1df2e08b57b2c882cd";
|
||||||
|
hash = "sha256-EfpKa5ZRBVM5T8EVim3cVX1PP1UM9CyG6tN5Br8zYww=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
# Add flake inputs as registries.
|
|
||||||
# Keeps nix3 commands consistent with flake.
|
|
||||||
registry = lib.mapAttrs (_: value: {flake = value;});
|
|
||||||
|
|
||||||
# Add inputs to system's legacy channels.
|
|
||||||
# Makes legacy nix commands consistent with flake as well.
|
|
||||||
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
keep-derivations = true;
|
keep-derivations = true;
|
||||||
keep-outputs = true;
|
keep-outputs = true;
|
||||||
max-jobs = "auto";
|
max-jobs = "auto";
|
||||||
|
@ -48,7 +56,7 @@
|
||||||
|
|
||||||
# Garbage collection configuration.
|
# Garbage collection configuration.
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = false;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
options = "--delete-older-than 3d";
|
options = "--delete-older-than 3d";
|
||||||
};
|
};
|
||||||
|
@ -150,13 +158,18 @@
|
||||||
hardware.sensor.iio.enable = true;
|
hardware.sensor.iio.enable = true;
|
||||||
|
|
||||||
# Configure system-wide default shell.
|
# Configure system-wide default shell.
|
||||||
environment.shells = with pkgs; [ zsh ];
|
environment.shells = with pkgs; [ fish ];
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.fish;
|
||||||
programs.zsh.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
# Configure users.
|
# Configure users.
|
||||||
snowfallorg.users.jo.admin = true;
|
snowfallorg.users.jo.admin = true;
|
||||||
|
|
||||||
|
# Configure home-manager
|
||||||
|
home-manager = {
|
||||||
|
backupFileExtension = "homeManagerBackup";
|
||||||
|
};
|
||||||
|
|
||||||
# Provide users with some sane default packages.
|
# Provide users with some sane default packages.
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
### General
|
### General
|
||||||
|
@ -173,5 +186,5 @@
|
||||||
noto-fonts-color-emoji
|
noto-fonts-color-emoji
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
|
@ -21,28 +21,12 @@
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc".device = "/dev/disk/by-uuid/5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc";
|
boot.initrd.luks.devices."luks-5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc".device = "/dev/disk/by-uuid/5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc";
|
||||||
|
|
||||||
fileSystems."/var/lib/docker/btrfs" =
|
|
||||||
{ device = "/@/@/var/lib/docker/btrfs";
|
|
||||||
fsType = "none";
|
|
||||||
options = [ "bind" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/2429-4141";
|
{ device = "/dev/disk/by-uuid/2429-4141";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/var/lib/docker/overlay2/eec00b6d746d533d213790aa0c8e5cca329148c50c0ab1b035020d27e218ed16/merged" =
|
|
||||||
{ device = "overlay";
|
|
||||||
fsType = "overlay";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/var/lib/docker/overlay2/bc060caf80f8891cd68f21563b8ece131b24b28772c2971a703bac1f5b54e8d1/merged" =
|
|
||||||
{ device = "overlay";
|
|
||||||
fsType = "overlay";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
|
Loading…
Reference in a new issue