begin migration to dendritic pattern
This commit is contained in:
153 files changed
+3352
-53
No files matched your search
@@ -0,0 +1,145 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.homeModules.kitagawa = { pkgs, lib, ... }: {
|
||||
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
|
||||
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logo = {
|
||||
type = "builtin";
|
||||
padding = {
|
||||
top = 1;
|
||||
left = 2;
|
||||
right = 2;
|
||||
};
|
||||
};
|
||||
|
||||
modules = [
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────── Software ──────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "title";
|
||||
key = " Session";
|
||||
format = "{user-name}@{host-name}";
|
||||
}
|
||||
{
|
||||
type = "os";
|
||||
key = " Distro";
|
||||
format = "{pretty-name}";
|
||||
}
|
||||
{
|
||||
type = "host";
|
||||
key = " Device";
|
||||
format = "{version}";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = " Kernel";
|
||||
}
|
||||
{
|
||||
type = "shell";
|
||||
key = " Shell";
|
||||
}
|
||||
{
|
||||
type = "terminal";
|
||||
key = " Terminal";
|
||||
}
|
||||
{
|
||||
type = "wm";
|
||||
key = " WM";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────── Hardware ──────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "cpu";
|
||||
key = " CPU";
|
||||
format = "{name}";
|
||||
}
|
||||
{
|
||||
type = "memory";
|
||||
key = " RAM";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "swap";
|
||||
key = " Swap";
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
separate = false;
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = " Disk";
|
||||
showRegular = true;
|
||||
showExternal = false;
|
||||
showHidden = false;
|
||||
showSubvolumes = false;
|
||||
showReadOnly = true;
|
||||
ShowUnknown = false;
|
||||
hideFolders = "/efi:/boot:/boot/*:/run/media/*";
|
||||
useAvailable = false;
|
||||
percent = {
|
||||
green = 50;
|
||||
yellow = 80;
|
||||
type = 0;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "localip";
|
||||
key = " IP";
|
||||
showIpv4 = true;
|
||||
showIpv6 = false;
|
||||
showMac = false;
|
||||
showLoop = false;
|
||||
showPrefixLen = true;
|
||||
showMtu = false;
|
||||
showSpeed = false;
|
||||
showFlags = false;
|
||||
compact = false;
|
||||
defaultRouteOnly = true;
|
||||
showAllIps = false;
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌──────────────── Age + Uptime ────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "disk";
|
||||
key = " OS Age";
|
||||
folders = "/";
|
||||
format = "{create-time:10} ({days} days)";
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
key = " Uptime";
|
||||
}
|
||||
{
|
||||
type = "custom";
|
||||
format = "└──────────────────────────────────────────────┘";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.homeModules.kitagawa = { pkgs, config, lib, ... }: {
|
||||
programs.kitty = {
|
||||
font = lib.mkForce {
|
||||
name = "Iosevka Comfy";
|
||||
package = pkgs.iosevka-comfy.comfy;
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.homeModules.kitagawa = { config, pkgs, ... }: {
|
||||
programs.zsh.shellAliases = {
|
||||
wake-takamaki = "ssh sakamoto .local/bin/wake-takamaki";
|
||||
shutdown-takamaki = "ssh takamaki universal-shutdown";
|
||||
reboot-takamaki = "ssh takamaki universal-reboot";
|
||||
switch-takamaki-os = "ssh takamaki switch-os";
|
||||
apply-config = "zsh -c 'cd /home/grey/nixos; git add .; nh os switch .'";
|
||||
update-system = "zsh -c 'cd /home/grey/nixos; git add .; nh os switch -u .'";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosConfigurations.kitagawa = inputs.nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
self.nixosModules.kitagawa
|
||||
];
|
||||
};
|
||||
|
||||
flake.nixosModules.kitagawa = { config, pkgs, ... }: {
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
networking.hostName = "kitagawa";
|
||||
|
||||
imports = with self.nixosModules; [
|
||||
global
|
||||
home-manager
|
||||
stylix
|
||||
ly
|
||||
niri
|
||||
noctalia
|
||||
zsh
|
||||
];
|
||||
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = "nixremote";
|
||||
systems = [ "x86_64-linux" "i686-linux" ];
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 250;
|
||||
speedFactor = 1000;
|
||||
supportedFeatures = [ "benchmark" "kvm" "big-parallel" ];
|
||||
}
|
||||
];
|
||||
|
||||
nix.distributedBuilds = true;
|
||||
nix.settings.builders-use-substitutes = true;
|
||||
|
||||
services.blueman.enable = true;
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
github-desktop
|
||||
moonlight-qt
|
||||
];
|
||||
|
||||
hardware.steam-hardware.enable = true;
|
||||
|
||||
boot = {
|
||||
# Enable "Silent boot"
|
||||
consoleLogLevel = 3;
|
||||
initrd.verbose = false;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"rd.udev.log_level=3"
|
||||
"rd.systemd.show_status=auto"
|
||||
];
|
||||
|
||||
loader.limine = {
|
||||
enable = true;
|
||||
maxGenerations = 10;
|
||||
};
|
||||
};
|
||||
|
||||
stylix.enable = true;
|
||||
stylix.image = ./wallpaper.jpg;
|
||||
stylix.polarity = "dark";
|
||||
|
||||
home-manager.users.grey = self.homeModules.kitagawa;
|
||||
};
|
||||
|
||||
flake.homeModules.kitagawa = { config, pkgs, inputs, lib, ... }: {
|
||||
home.stateVersion = "26.05";
|
||||
|
||||
imports = with self.homeModules; [
|
||||
global
|
||||
niri
|
||||
noctalia
|
||||
vscode
|
||||
kitty
|
||||
zsh
|
||||
floorp
|
||||
equibop
|
||||
spotify
|
||||
];
|
||||
|
||||
features.spicetify.enable = true;
|
||||
|
||||
/*
|
||||
imports = [
|
||||
#"${global-configs}/gnome.nix"
|
||||
#./configs/fetch.nix
|
||||
];
|
||||
*/
|
||||
|
||||
home.packages = with pkgs; [
|
||||
obsidian
|
||||
thunderbird
|
||||
jetbrains.clion
|
||||
jetbrains.idea
|
||||
proton-vpn
|
||||
ente-auth
|
||||
signal-desktop
|
||||
xarchiver
|
||||
kdePackages.filelight
|
||||
remmina
|
||||
freerdp
|
||||
loupe
|
||||
];
|
||||
|
||||
stylix.targets.floorp.profileNames = [ "default" ];
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
gtk3.bookmarks = [
|
||||
"file:///home/grey/nixos NixOS"
|
||||
"file:///home/grey/Downloads Downloads"
|
||||
"file:///home/grey/Documents Documents"
|
||||
"file:///home/grey/Pictures Pictures"
|
||||
"file:///home/grey/Music Music"
|
||||
"file:///home/grey/Videos Videos"
|
||||
"file:/// Root"
|
||||
];
|
||||
};
|
||||
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# workaround for
|
||||
# https://github.com/nix-community/home-manager/issues/632
|
||||
program_options = {
|
||||
# replace with your favorite file manager
|
||||
file_manager = "${pkgs.nautilus}/bin/nautilus";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg = {
|
||||
enable = true;
|
||||
mimeApps.defaultApplications = {
|
||||
"x-scheme-handler/x-github-client" = [ "github-desktop.desktop" ];
|
||||
"x-scheme-handler/x-github-desktop-dev-auth" = [ "github-desktop.desktop" ];
|
||||
"x-scheme-handler/http" = [ "floorp.desktop" ];
|
||||
"text/html" = [ "floorp.desktop" ];
|
||||
"application/xhtml+xml" = [ "floorp.desktop" ];
|
||||
"x-scheme-handler/https" = [ "floorp.desktop" ];
|
||||
"text/calendar" = [ "thunderbird.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
settings = {
|
||||
"takamaki" = {
|
||||
HostName = "greyweather.dev";
|
||||
Port = "2222";
|
||||
User = "grey";
|
||||
IdentityFile = "~/.ssh/id_takamaki";
|
||||
};
|
||||
"sakamoto" = {
|
||||
HostName = "greyweather.dev";
|
||||
Port = "22";
|
||||
User = "grey";
|
||||
IdentityFile = "~/.ssh/id_sakamoto";
|
||||
};
|
||||
"nixremote" = {
|
||||
HostName = "greyweather.dev";
|
||||
Port = "2222";
|
||||
User = "nixremote";
|
||||
IdentityFile = "~/.ssh/id_takamaki";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
home.activation = {
|
||||
linkRemminaPresets = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
#!/bin/bash
|
||||
if [ -d /home/grey/.local/share/remmina ]; then
|
||||
rm -rf /home/grey/.local/share/remmina
|
||||
fi
|
||||
ln -s /home/grey/nixos/assets/dotfiles/remmina-presets /home/grey/.local/share/remmina
|
||||
'';
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.kitagawa = { config, lib, pkgs, modulesPath, ... }: {
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b17296df-a72e-4b9d-a3b6-54fc0c97c685";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/b17296df-a72e-4b9d-a3b6-54fc0c97c685";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=home" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-uuid/b17296df-a72e-4b9d-a3b6-54fc0c97c685";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=nix" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/68F7-4D8F";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/e85559e0-a039-4178-929a-8c5ec0328b64"; }
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.kitagawa = { pkgs, config, ... }: {
|
||||
systemd.sleep.settings.Sleep = {
|
||||
AllowSuspend = "no";
|
||||
AllowHibernation = "yes";
|
||||
};
|
||||
|
||||
services.logind.settings.Login.HandleLidSwitch = "ignore";
|
||||
|
||||
systemd.services.disable-lid-wakeup = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Prevent the lid switch from waking laptop from hibernation";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "root";
|
||||
ExecStart = "/bin/sh -c \"if [ \\\"$(cat /proc/acpi/wakeup | grep 'LID' | grep 'enabled')\\\" != \\\"\\\" ]; then echo LID > /proc/acpi/wakeup; fi\"";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.disable-tty-switch = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Prevent alt+arrow keys from switching tty";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "root";
|
||||
ExecStart = "/bin/sh -c \"${pkgs.kbd}/bin/dumpkeys -k|grep -v Incr_Console|grep -v Decr_Console|${pkgs.kbd}/bin/loadkeys\"";
|
||||
};
|
||||
};
|
||||
|
||||
services.fprintd.enable = true;
|
||||
|
||||
services.iio-niri.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{ inputs, self, ... }: {
|
||||
flake.nixosModules.kitagawa = { pkgs, config, ... }:
|
||||
let
|
||||
plymouthTheme = "double";
|
||||
in {
|
||||
stylix.targets.plymouth.enable = false;
|
||||
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
theme = plymouthTheme;
|
||||
themePackages = with pkgs; [
|
||||
(adi1090x-plymouth-themes.override {
|
||||
selected_themes = [ plymouthTheme ];
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
Reference in new issue
Block a user