mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-10-02 06:54:49 +02:00
Compare commits
8 commits
45df03aec8
...
46986df271
Author | SHA1 | Date | |
---|---|---|---|
46986df271 | |||
220f545712 | |||
b8cd7adbe1 | |||
768b4846b0 | |||
fa43c46786 | |||
2e9dab5f24 | |||
9293a8e813 | |||
2016bc4319 |
11 changed files with 148 additions and 52 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -1,5 +1,25 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"auto-cpufreq": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgsUnstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758887019,
|
||||||
|
"narHash": "sha256-5QDHaIKbmremgFh8Pc9ess59K4HJ5APM8pNgnYzAMno=",
|
||||||
|
"owner": "AdnanHodzic",
|
||||||
|
"repo": "auto-cpufreq",
|
||||||
|
"rev": "52194f4db364347626985fed5372eba2b6109cf4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "AdnanHodzic",
|
||||||
|
"repo": "auto-cpufreq",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"catppuccin": {
|
"catppuccin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
|
@ -754,6 +774,7 @@
|
||||||
"alejandra": [
|
"alejandra": [
|
||||||
"nixpkgsUnstable"
|
"nixpkgsUnstable"
|
||||||
],
|
],
|
||||||
|
"auto-cpufreq": "auto-cpufreq",
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lix": "lix",
|
"lix": "lix",
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -64,6 +64,10 @@
|
||||||
url = "github:moonlight-mod/moonlight/develop"; # Add `/develop` to the flake URL to use nightly.
|
url = "github:moonlight-mod/moonlight/develop"; # Add `/develop` to the flake URL to use nightly.
|
||||||
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
||||||
};
|
};
|
||||||
|
auto-cpufreq = {
|
||||||
|
url = "github:AdnanHodzic/auto-cpufreq";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgsUnstable";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -82,6 +86,7 @@
|
||||||
musnix,
|
musnix,
|
||||||
lix-module,
|
lix-module,
|
||||||
moonlight,
|
moonlight,
|
||||||
|
auto-cpufreq,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
@ -149,13 +154,19 @@
|
||||||
specialArgs = specialArgs;
|
specialArgs = specialArgs;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/buldak/configuration.nix
|
./hosts/buldak/configuration.nix
|
||||||
|
# lix-module.nixosModules.default
|
||||||
|
auto-cpufreq.nixosModules.default
|
||||||
catppuccin.nixosModules.catppuccin
|
catppuccin.nixosModules.catppuccin
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
imports = [./home-manager/home.nix catppuccin.homeModules.catppuccin moonlight.homeModules.default];
|
imports = [
|
||||||
|
./home-manager/home.nix
|
||||||
|
catppuccin.homeModules.catppuccin
|
||||||
|
moonlight.homeModules.default
|
||||||
|
];
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
inputs.miovim.packages.${system}.default
|
inputs.miovim.packages.${system}.default
|
||||||
|
|
7
home-manager/dotfiles/matugen/templates/colors.css
Normal file
7
home-manager/dotfiles/matugen/templates/colors.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Css Colors
|
||||||
|
* Generated with Matugen
|
||||||
|
*/
|
||||||
|
<* for name, value in colors *>
|
||||||
|
@define-color {{name}} {{value.default.hex}};
|
||||||
|
<* endfor *>
|
|
@ -579,18 +579,18 @@ environment {
|
||||||
}
|
}
|
||||||
|
|
||||||
// apps to launch at startup
|
// apps to launch at startup
|
||||||
spawn-at-startup "qutebrowser"
|
|
||||||
spawn-at-startup "discord"
|
spawn-at-startup "discord"
|
||||||
spawn-at-startup "beeper"
|
spawn-at-startup "footclient" "nvim" "~/Documents/Notes"
|
||||||
spawn-at-startup "cinny"
|
spawn-at-startup "cider"
|
||||||
|
|
||||||
clipboard {
|
clipboard {
|
||||||
disable-primary
|
disable-primary
|
||||||
}
|
}
|
||||||
|
|
||||||
workspace "code"
|
workspace "code "
|
||||||
workspace "internet"
|
workspace "internet "
|
||||||
workspace "chat"
|
workspace "chat "
|
||||||
|
workspace "music "
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match at-startup=true app-id=r#"^discord$"#
|
match at-startup=true app-id=r#"^discord$"#
|
||||||
|
@ -611,6 +611,11 @@ window-rule {
|
||||||
open-on-workspace "internet"
|
open-on-workspace "internet"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match at-startup=true app-id=r#"Cider$"#
|
||||||
|
open-on-workspace "music"
|
||||||
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"mpv$"#
|
match app-id=r#"mpv$"#
|
||||||
open-floating true
|
open-floating true
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
./background.sh ~/.config/niri/wallpapers/
|
~/.config/niri/background.sh ~/.config/niri/wallpapers/
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"network",
|
"network",
|
||||||
"wireplumber",
|
"wireplumber",
|
||||||
"clock",
|
"clock",
|
||||||
"privacy"
|
"privacy",
|
||||||
|
"battery"
|
||||||
],
|
],
|
||||||
"clock": {
|
"clock": {
|
||||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||||
|
@ -81,5 +82,14 @@
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"bat": "BAT0",
|
||||||
|
"states": {
|
||||||
|
"warning": 20,
|
||||||
|
"critical": 10
|
||||||
|
},
|
||||||
|
"format": "{capacity}% {icon}"
|
||||||
|
"format-icons": ["", "", "", "", ""],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,12 +112,31 @@
|
||||||
".config/hyfetch.json".source = dotfiles/hyfetch/hyfetch.json;
|
".config/hyfetch.json".source = dotfiles/hyfetch/hyfetch.json;
|
||||||
".config/niri".source = dotfiles/niri;
|
".config/niri".source = dotfiles/niri;
|
||||||
".config/mako".source = dotfiles/mako;
|
".config/mako".source = dotfiles/mako;
|
||||||
|
};
|
||||||
|
|
||||||
# # You can also set the file content immediately.
|
programs.matugen = {
|
||||||
# ".gradle/gradle.properties".text = ''
|
enable = true;
|
||||||
# org.gradle.console=verbose
|
variant = "dark";
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
|
||||||
# '';
|
config = {
|
||||||
|
wallpaper = {
|
||||||
|
command = "swww";
|
||||||
|
arguments = [
|
||||||
|
"img"
|
||||||
|
"--transition-type"
|
||||||
|
"center"
|
||||||
|
];
|
||||||
|
set = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
templates = {
|
||||||
|
waybar = {
|
||||||
|
input_path = "./templates/colors.css";
|
||||||
|
output_path = "~/.config/waybar/colors.css";
|
||||||
|
post_hook = "pkill -SIGUSR2 waybar";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
|
@ -198,7 +217,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
userName = "chloe";
|
userName = "misschloe777";
|
||||||
userEmail = "harryh@ik.me";
|
userEmail = "harryh@ik.me";
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
@ -355,6 +374,7 @@
|
||||||
search_mode = "fuzzy";
|
search_mode = "fuzzy";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# programs.moonlight = {
|
# programs.moonlight = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# configs.stable = {
|
# configs.stable = {
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../shared/client/tailscale.nix
|
../../shared/client/tailscale.nix
|
||||||
../../shared/client/niri.nix
|
../../shared/client/niri.nix
|
||||||
|
@ -21,18 +20,40 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot = {
|
||||||
|
plymouth = {
|
||||||
|
enable = true;
|
||||||
|
theme = "blahaj";
|
||||||
|
themePackages = with pkgs; [
|
||||||
|
# By default we would install all themes
|
||||||
|
plymouth-blahaj-theme
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable "Silent boot"
|
||||||
|
consoleLogLevel = 3;
|
||||||
|
initrd.verbose = false;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"boot.shell_on_fail"
|
||||||
|
"udev.log_priority=3"
|
||||||
|
"rd.systemd.show_status=auto"
|
||||||
|
];
|
||||||
|
# Hide the OS choice for bootloaders.
|
||||||
|
# It's still possible to open the bootloader list by pressing any key
|
||||||
|
# It will just not appear on screen unless a key is pressed
|
||||||
|
loader.timeout = 0;
|
||||||
|
loader.systemd-boot.enable = true;
|
||||||
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device =
|
boot.initrd.luks.devices."luks-d265e9b2-2ef5-445a-83f2-ec022e0eec7b".device =
|
||||||
"/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b";
|
"/dev/disk/by-uuid/d265e9b2-2ef5-445a-83f2-ec022e0eec7b";
|
||||||
networking.hostName = "buldak"; # Define your hostname.
|
networking.hostName = "buldak"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# 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";
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
@ -89,32 +110,30 @@
|
||||||
# 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; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
poweralertd
|
||||||
# wget
|
matugen
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"libsoup-2.74.3"
|
"libsoup-2.74.3"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
nix.package = pkgs.lixPackageSets.stable.lix;
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
# laptop stuff
|
||||||
|
services.thermald.enable = true;
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
programs.auto-cpufreq.enable = true;
|
||||||
# services.openssh.enable = true;
|
programs.auto-cpufreq.settings = {
|
||||||
|
battery = {
|
||||||
# Open ports in the firewall.
|
governor = "powersave";
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
turbo = "auto";
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
};
|
||||||
# Or disable the firewall altogether.
|
charger = {
|
||||||
# networking.firewall.enable = false;
|
governor = "performance";
|
||||||
|
turbo = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
osu-lazer-bin
|
osu-lazer-bin
|
||||||
signal-desktop
|
signal-desktop
|
||||||
cider-2
|
cider-2
|
||||||
|
iamb
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.containers.enable = true;
|
virtualisation.containers.enable = true;
|
||||||
|
|
|
@ -42,6 +42,8 @@ in
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA8sdToNavEQv7PTMJ97HIGM6UlChwGS3x9O8hFilzui harryh@ik.me"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA8sdToNavEQv7PTMJ97HIGM6UlChwGS3x9O8hFilzui harryh@ik.me"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHjz5MUSmc1ahtUJWuvzG7PHH432nx6a0Nj2zfxt3oTP geekcat@protonmail.com"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHjz5MUSmc1ahtUJWuvzG7PHH432nx6a0Nj2zfxt3oTP geekcat@protonmail.com"
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP9Yp7TbDhYJ27Sh+LcPXT569bMVwbFrkE4zksfU84l+ harry123@goober"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP9Yp7TbDhYJ27Sh+LcPXT569bMVwbFrkE4zksfU84l+ harry123@goober"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIKvsv6BM1CxcJ7bmKrq9BZATxtALcOABWJpBfou3HN misschloe777@buldak
|
||||||
|
"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./akkoma.nix
|
# ./akkoma.nix
|
||||||
# ./archivebox.nix
|
# ./archivebox.nix
|
||||||
./homelab-dashboard.nix
|
./homelab-dashboard.nix
|
||||||
# ./nextcloud.nix
|
# ./nextcloud.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue