Compare commits

..

No commits in common. "4d17f8d4bf6133d0d0af5814b33e10fa816f3269" and "0545217233c30a470fe7bfad194117c4d991504d" have entirely different histories.

13 changed files with 77 additions and 101 deletions

View file

@ -1,26 +1,22 @@
# nix dotfiles # my nix homelab config
This repo hosts all my dotfiles. It includes two desktop config, one (terrible) computer config, and some server dots. It brings my own neovim config, called [miovim](https://git.rougebordeaux.xyz/misschloe/miovim). **THIS CONFIG IS STILL EXPERIMENTAL !! IT MIGHT WONT WORK OR JUST BREAK YOUR CURRENT INSTALL**
Hosted on a Proxmox VM (8Go RAM + 300Gb storage). It is not using the flake.nix because i don't see the use for it, as much than home-manager...
| name | description | The goal of this config is to include :
| ----------- | ------------------------------------------------- |
| `goober` | my main desktop config. Intel 9th gen + 1660 GPU. |
| `workspace` | my config for professional workspaces. |
| `sisyphe` | proxmox server vm |
| `labouse` | ASUS X75s (laptop) nix config. Highly experimental, as this is old hardware! |
| `dadarwin` | some basic iMac 2015 config. |
`diva`, `strawberry` are WIP. Supposed to be two servers config. - [x] -arr suite
- [x] Authentik
- [x] slskd
- [ ] a cloud solution, to backup family files
- [x] crafty controller\*
- [x] a matrix server
- [x] tt-rss / freshrss\*
- [x] tailscale
`packages` also comes with some packages bundling i made for various software i use (and too shy to put in nixpkgs). \*Not using the "Nix" way (i prefer using Docker atm, i currently lack time)
# Installation ## Installation
!! This config is not plug and play; it comes with some encrypted secrets and files that are not included here. !!
Make sure flakes and nix command is enabled first in your configuration, then run : You will need to do a basic NixOS install with my config files placed @ `/etc/nixos`.
Then, setup and adapt the config with your secrets. I am using sops-nix here.
```bash
git clone <repo-url>
# replace goober by whatever config interests you
sudo nixos-rebuild switch --flake .#goober
```

44
flake.lock generated
View file

@ -381,15 +381,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1751240025, "lastModified": 1751909859,
"narHash": "sha256-SXUAlxpjPRkArRMHy5+Hdi+PiC+ND9yzzIjiaHmTvQU=", "narHash": "sha256-gbpuESxl/An4GTh7QEbQRYJozVIxWkwVGbWK0/0GoRc=",
"rev": "8b1094356f4723d6e89d3f8a95b333ee16d9ab02", "rev": "4d4c2b8f0a801c91ce5b717c77fe3a17efa1402f",
"type": "tarball", "type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/8b1094356f4723d6e89d3f8a95b333ee16d9ab02.tar.gz" "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/4d4c2b8f0a801c91ce5b717c77fe3a17efa1402f.tar.gz?rev=4d4c2b8f0a801c91ce5b717c77fe3a17efa1402f"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
"url": "https://git.lix.systems/lix-project/nixos-module/archive/2.93.2-1.tar.gz" "url": "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"
} }
}, },
"miovim": { "miovim": {
@ -436,9 +436,7 @@
}, },
"musnix": { "musnix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs_4"
"nixpkgsUnstable"
]
}, },
"locked": { "locked": {
"lastModified": 1741303672, "lastModified": 1741303672,
@ -461,7 +459,7 @@
"git-hooks": "git-hooks", "git-hooks": "git-hooks",
"hercules-ci-effects": "hercules-ci-effects", "hercules-ci-effects": "hercules-ci-effects",
"neovim-src": "neovim-src", "neovim-src": "neovim-src",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_5",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
@ -678,6 +676,22 @@
} }
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": {
"lastModified": 1740695751,
"narHash": "sha256-D+R+kFxy1KsheiIzkkx/6L63wEHBYX21OIwlFV8JvDs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6313551cd05425cd5b3e63fe47dbc324eabb15e4",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1753151930, "lastModified": 1753151930,
"narHash": "sha256-XSQy6wRKHhRe//iVY5lS/ZpI/Jn6crWI8fQzl647wCg=", "narHash": "sha256-XSQy6wRKHhRe//iVY5lS/ZpI/Jn6crWI8fQzl647wCg=",
@ -693,7 +707,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_5": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1753115646, "lastModified": 1753115646,
"narHash": "sha256-yLuz5cz5Z+sn8DRAfNkrd2Z1cV6DaYO9JMrEz4KZo/c=", "narHash": "sha256-yLuz5cz5Z+sn8DRAfNkrd2Z1cV6DaYO9JMrEz4KZo/c=",
@ -709,7 +723,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1744868846, "lastModified": 1744868846,
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
@ -725,7 +739,7 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_7": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1750605355, "lastModified": 1750605355,
"narHash": "sha256-xT8cPLTxlktxI9vSdoBlAVK7dXgd8IK59j7ZwzkkhnI=", "narHash": "sha256-xT8cPLTxlktxI9vSdoBlAVK7dXgd8IK59j7ZwzkkhnI=",
@ -803,7 +817,7 @@
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nix-secrets": "nix-secrets", "nix-secrets": "nix-secrets",
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_6",
"nixpkgsSmall": "nixpkgsSmall", "nixpkgsSmall": "nixpkgsSmall",
"nixpkgsUnstable": "nixpkgsUnstable", "nixpkgsUnstable": "nixpkgsUnstable",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
@ -834,7 +848,7 @@
}, },
"sops-nix": { "sops-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_7"
}, },
"locked": { "locked": {
"lastModified": 1752544651, "lastModified": 1752544651,
@ -853,7 +867,7 @@
"swww": { "swww": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_3", "flake-compat": "flake-compat_3",
"nixpkgs": "nixpkgs_7", "nixpkgs": "nixpkgs_8",
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {

View file

@ -52,13 +52,12 @@
}; };
lix-module = { lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.93.2-1.tar.gz"; url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
inputs.nixpkgs.follows = "nixpkgsUnstable"; inputs.nixpkgs.follows = "nixpkgsUnstable";
inputs.lix.follows = "lix"; inputs.lix.follows = "lix";
}; };
musnix = { musnix = {
url = "github:musnix/musnix"; url = "github:musnix/musnix";
inputs.nixpkgs.follows = "nixpkgsUnstable";
}; };
moonlight = { moonlight = {
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.
@ -120,7 +119,7 @@
specialArgs = specialArgs; specialArgs = specialArgs;
modules = [ modules = [
./hosts/goober/configuration.nix ./hosts/goober/configuration.nix
# lix-module.nixosModules.default lix-module.nixosModules.default
nix-flatpak.nixosModules.nix-flatpak nix-flatpak.nixosModules.nix-flatpak
musnix.nixosModules.musnix musnix.nixosModules.musnix
catppuccin.nixosModules.catppuccin catppuccin.nixosModules.catppuccin

View file

@ -580,7 +580,7 @@ environment {
// apps to launch at startup // apps to launch at startup
spawn-at-startup "qutebrowser" spawn-at-startup "qutebrowser"
spawn-at-startup "discord" spawn-at-startup "vesktop"
spawn-at-startup "beeper" spawn-at-startup "beeper"
spawn-at-startup "cinny" spawn-at-startup "cinny"

View file

@ -87,7 +87,6 @@
obsidian obsidian
papirus-icon-theme papirus-icon-theme
nvimpager nvimpager
mpc
# # You can also create simple shell scripts directly inside your # # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your # # configuration. For example, this adds a command 'my-hello' to your
# # environment: # # environment:

View file

@ -110,7 +110,6 @@
slurp slurp
wl-clipboard wl-clipboard
udiskie udiskie
lutris
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@ -133,15 +132,6 @@
}; };
documentation.dev.enable = true; documentation.dev.enable = true;
systemd.extraConfig = "DefaultLimitNOFILE=524288";
security.pam.loginLimits = [
{
domain = "misschloe777";
type = "hard";
item = "nofile";
value = "524288";
}
];
# This option defines the first version of NixOS you have installed on this particular machine, # This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.

View file

@ -1,10 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [
glxinfo
];
boot.blacklistedKernelModules = [ "nouveau" ]; boot.blacklistedKernelModules = [ "nouveau" ];
hardware.graphics = { hardware.graphics = {
enable = true; enable = true;

View file

@ -8,7 +8,6 @@
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true;
}; };
environment.systemPackages = [ environment.systemPackages = [
pkgs.pwvucontrol pkgs.pwvucontrol

View file

@ -4,15 +4,14 @@
pkgs, pkgs,
... ...
}: }:
let
discord = pkgs.discord.override {
withMoonlight = true;
moonlight = inputs.moonlight.packages.${pkgs.system}.moonlight;
};
in
{ {
environment.systemPackages = [ environment.systemPackages = with pkgs; [
discord discord.override
{
withMoonlight = true;
moonlight = inputs.moonlight.packages.${pkgs.system}.moonlight;
}
vesktop
]; ];
# screen record support # screen record support
xdg = { xdg = {

View file

@ -23,7 +23,6 @@
musnix.rtcqs.enable = true; musnix.rtcqs.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zathura zathura
qutebrowser
# music editing software # music editing software
reaper reaper
surge surge
@ -66,7 +65,7 @@
kicad kicad
ente-auth ente-auth
ente-web ente-web
# jetbrains.rider jetbrains.rider
revolt-desktop revolt-desktop
exactaudiocopy exactaudiocopy
picard picard

View file

@ -27,7 +27,7 @@
"kvm-intel" "kvm-intel"
"wl" "wl"
]; ];
# boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/4efbf111-4cbb-4e1e-b3ee-dc3fca1f6f4a"; device = "/dev/disk/by-uuid/4efbf111-4cbb-4e1e-b3ee-dc3fca1f6f4a";

View file

@ -1,34 +1,18 @@
{config, pkgs, ...}:
{ {
config, programs.steam = {
lib, enable = true;
pkgs, remotePlay.openFirewall = true;
... dedicatedServer.openFirewall = true;
}:
{
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
nixpkgs.config.allowUnfreePredicate = nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
pkg: "steam"
builtins.elem (lib.getName pkg) [ "steam-original"
"steam" "steam-run"
"steam-original" ];
"steam-run"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lutris lutris
]; ];
systemd.extraConfig = "DefaultLimitNOFILE=524288"; };
security.pam.loginLimits = [
{
domain = "misschloe777";
type = "hard";
item = "nofile";
value = "524288";
}
];
};
} }

View file

@ -48,9 +48,10 @@
pkg: pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [
"nvidia" "nvidia"
"broadcom-sta"
]; ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Add your own packages here # Add your own packages here
neovim neovim
@ -67,7 +68,7 @@
# Nvidia power management. Experimental, and can cause sleep/suspend to fail. # Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking # Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials. # of just the bare essentials.
powerManagement.enable = false; powerManagement.enable = false;
@ -77,9 +78,9 @@
# Use the NVidia open source kernel module (not to be confused with the # Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver). # independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of # Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at: # supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+ # Only available from driver 515.43.04+
# Currently "beta quality", so false is currently the recommended setting. # Currently "beta quality", so false is currently the recommended setting.
open = false; open = false;