/some/ things should work now
This commit is contained in:
parent
7f7d9af446
commit
4cec867a78
21 changed files with 190 additions and 122 deletions
21
flake.lock
generated
21
flake.lock
generated
|
@ -304,6 +304,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"haumea": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708375098,
|
||||
"narHash": "sha256-DaFJp3wDHgOqx98U0SF57bXaH2Orp106c+jSdPCVu1E=",
|
||||
"owner": "nix-community",
|
||||
"repo": "haumea",
|
||||
"rev": "ec6350fd9353e7f27ce0e85d31f82e3ed73e4d70",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "haumea",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hercules-ci-effects": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_3",
|
||||
|
@ -549,6 +569,7 @@
|
|||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"hardware": "hardware",
|
||||
"haumea": "haumea",
|
||||
"home-manager": "home-manager",
|
||||
"microvm": "microvm",
|
||||
"nix-index-database": "nix-index-database",
|
||||
|
|
|
@ -58,6 +58,10 @@
|
|||
url = "github:Open-Wine-Components/umu-launcher/?dir=packaging\/nix&submodules=1";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
haumea = {
|
||||
url = "github:nix-community/haumea";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
## deduplication
|
||||
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
homeImports,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
specialArgs = {
|
||||
|
@ -13,7 +14,10 @@
|
|||
rootPaths = prependAll "${self}/";
|
||||
modulePaths = prependAll "${self}/system/";
|
||||
|
||||
inherit (import "${self}/system") desktop;
|
||||
profiles = inputs.haumea.lib.load {
|
||||
inputs = {inherit inputs lib;};
|
||||
src = "${self}/profiles";
|
||||
};
|
||||
in {
|
||||
flake.colmena = {
|
||||
meta = {
|
||||
|
@ -40,21 +44,21 @@ in {
|
|||
};
|
||||
imports = lib.flatten [
|
||||
./kidney
|
||||
(modulePaths [
|
||||
"core/tools.nix"
|
||||
"core/users.nix"
|
||||
"core/locale.nix"
|
||||
(with profiles; [
|
||||
core.tools
|
||||
core.users
|
||||
core.locale
|
||||
|
||||
"programs/tools.nix"
|
||||
"programs/zsh.nix"
|
||||
"programs/home-manager.nix"
|
||||
"hardware/graphics.nix"
|
||||
programs.tools
|
||||
programs.zsh
|
||||
programs.home-manager
|
||||
hardware.graphics
|
||||
|
||||
"services/flatpak.nix"
|
||||
"services/xdg-portals.nix"
|
||||
services.flatpak
|
||||
services.xdg-portals
|
||||
|
||||
"nix"
|
||||
"nix/gc.nix"
|
||||
nix.default
|
||||
nix.gc
|
||||
])
|
||||
{
|
||||
home-manager = {
|
||||
|
@ -70,9 +74,7 @@ in {
|
|||
targetUser = "xun";
|
||||
targetHost = "nixdesk.local";
|
||||
};
|
||||
imports =
|
||||
desktop
|
||||
++ lib.flatten [
|
||||
imports = lib.flatten [
|
||||
./nixdesk
|
||||
|
||||
(rootPaths [
|
||||
|
@ -80,18 +82,50 @@ in {
|
|||
"secrets/nixdesk"
|
||||
])
|
||||
|
||||
(modulePaths [
|
||||
"services/syncthing.nix"
|
||||
"services/virt/waydroid.nix"
|
||||
#"services/virt/virt-manager.nix"
|
||||
#"network/wifi.nix"
|
||||
#"services/ollama.nix"
|
||||
"desktop/x11/nosleep.nix"
|
||||
(with profiles; [
|
||||
core.default
|
||||
core.tools
|
||||
core.compat
|
||||
core.boot
|
||||
core.docs
|
||||
core.gvfs
|
||||
|
||||
# "programs/gamemode.nix" # TEMP: TODO
|
||||
# "programs/gamescope.nix" # TEMP: TODO
|
||||
# "programs/steam.nix" # TEMP: TODO
|
||||
"programs/RE"
|
||||
nix.gc
|
||||
|
||||
hardware.graphics
|
||||
hardware.steam-hardware
|
||||
hardware.bluetooth
|
||||
hardware.qmk
|
||||
|
||||
network.networkd
|
||||
network.avahi
|
||||
network.localsend
|
||||
network.tailscale
|
||||
network.goldberg
|
||||
|
||||
desktop.default
|
||||
desktop.awesome
|
||||
desktop.sway
|
||||
#..desktop.hyprland
|
||||
|
||||
programs.default
|
||||
programs.tools
|
||||
|
||||
services.default
|
||||
services.pipewire
|
||||
services.flatpak
|
||||
|
||||
services.syncthing
|
||||
services.virt.waydroid
|
||||
#services.virt.virt-manager
|
||||
#network.wifi
|
||||
#services.ollama
|
||||
desktop.x11.nosleep
|
||||
|
||||
# programs.gamemode # TEMP: TODO
|
||||
# programs.gamescope # TEMP: TODO
|
||||
# programs.steam # TEMP: TODO
|
||||
programs.RE.default
|
||||
])
|
||||
|
||||
{
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: let
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {pkgs, ...}: let
|
||||
list-of-libraries = with pkgs; [
|
||||
alsa-lib
|
||||
at-spi2-atk
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
{lib, ...}: {
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
imports = [
|
||||
./security.nix
|
||||
./users.nix
|
||||
./ssh.nix
|
||||
./locale.nix
|
||||
../nix
|
||||
../programs/zsh.nix
|
||||
super.security
|
||||
super.users
|
||||
super.ssh
|
||||
super.locale
|
||||
root.nix.default
|
||||
root.programs.zsh
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {pkgs, ...}: {
|
||||
documentation = {
|
||||
dev.enable = true;
|
||||
# man.generateCaches = true; # this does slow down builds by quite a lot
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{lib, ...}: {
|
||||
{...}: {lib, ...}: {
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
supportedLocales = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{...}: {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
htop
|
||||
btop
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{...}: {pkgs, ...}: {
|
||||
users.users.xun = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "nixos";
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
let
|
||||
desktop = [
|
||||
./core
|
||||
./core/tools.nix
|
||||
./core/compat.nix
|
||||
./core/boot.nix
|
||||
./core/docs.nix
|
||||
./core/gvfs.nix
|
||||
|
||||
./nix/gc.nix
|
||||
|
||||
./hardware/graphics.nix
|
||||
./hardware/steam-hardware.nix
|
||||
./hardware/bluetooth.nix
|
||||
./hardware/qmk.nix
|
||||
|
||||
./network/networkd.nix
|
||||
./network/avahi.nix
|
||||
./network/localsend.nix
|
||||
./network/tailscale.nix
|
||||
./network/goldberg.nix
|
||||
|
||||
./desktop
|
||||
./desktop/awesome.nix
|
||||
./desktop/sway.nix
|
||||
#./desktop/hyprland.nix
|
||||
|
||||
./programs
|
||||
./programs/tools.nix
|
||||
|
||||
./services
|
||||
./services/pipewire.nix
|
||||
./services/flatpak.nix
|
||||
];
|
||||
in {
|
||||
inherit desktop;
|
||||
}
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
localsend
|
||||
];
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
|
@ -6,8 +10,8 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./nixpkgs.nix
|
||||
./substituters.nix
|
||||
super.nixpkgs
|
||||
super.substituters
|
||||
];
|
||||
|
||||
# git is needed for flakes
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
config.permittedInsecurePackages = [];
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
nix.settings = {
|
||||
substituters = [
|
||||
# high priority since it's almost always used
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# patchelf --replace-needed libbinaryninjacore.so.1 ${symlinkJoin} $out/opt/binaryninja
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{
|
||||
imports = [
|
||||
./fonts.nix
|
||||
./home-manager.nix
|
||||
./qt.nix
|
||||
./adb.nix
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {
|
||||
imports = with super; [
|
||||
fonts
|
||||
home-manager
|
||||
qt
|
||||
adb
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {pkgs, ...}: {
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
powerline-fonts
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{inputs, ...}: {
|
||||
{...}: {inputs, ...}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{...}: {
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
{config, ...}: {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
user = "xun";
|
||||
group = "users";
|
||||
dataDir = "/home/xun/.local/share/syncthing";
|
||||
configDir = "/home/xun/.config/syncthing";
|
||||
|
||||
overrideDevices = true;
|
||||
settings = {
|
||||
{
|
||||
self,
|
||||
super,
|
||||
root,
|
||||
}: {config, ...}: let
|
||||
devices = {
|
||||
"nixdesk" = {
|
||||
id = "XXABQZC-CO6OM2E-EMB3QIJ-NF5I3WU-CCQPPRY-7BX4ZSS-WIU4WW2-WXFWVQR";
|
||||
|
@ -27,9 +21,21 @@
|
|||
autoAcceptFolders = true;
|
||||
};
|
||||
};
|
||||
in {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
user = "xun";
|
||||
group = "users";
|
||||
dataDir = "/home/xun/.local/share/syncthing";
|
||||
configDir = "/home/xun/.config/syncthing";
|
||||
|
||||
overrideDevices = true;
|
||||
settings = {
|
||||
inherit devices;
|
||||
folders = {
|
||||
"~/secrets" = {
|
||||
devices = builtins.attrNames config.services.syncthing.settings.devices;
|
||||
devices = builtins.attrNames devices;
|
||||
versioning = {
|
||||
type = "trashcan";
|
||||
params.cleanoutDays = "180";
|
||||
|
@ -37,7 +43,7 @@
|
|||
id = "sfw9y-yusup";
|
||||
};
|
||||
"~/docs/xun-megavault" = {
|
||||
devices = builtins.attrNames config.services.syncthing.settings.devices;
|
||||
devices = builtins.attrNames devices;
|
||||
id = "1zkf-wf5r";
|
||||
versioning = {
|
||||
type = "simple";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{...}: {pkgs, ...}: {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue