Fix folder paths, set Tower back to stable, remove Nix channels for system for now

This commit is contained in:
Bun 2025-05-11 01:48:37 -04:00
parent f8ba0f4514
commit f8cbfda048
12 changed files with 42 additions and 39 deletions

View file

@ -44,13 +44,14 @@
inputs.nixpkgs.follows = "unstable"; inputs.nixpkgs.follows = "unstable";
}; };
# Specific apps
blender.url = "github:edolstra/nix-warez?dir=blender"; blender.url = "github:edolstra/nix-warez?dir=blender";
}; };
outputs = inputs: outputs = inputs: with inputs;
inputs.flake-utils.lib.eachDefaultSystemPassThrough (system: flake-utils.lib.eachDefaultSystemPassThrough (system:
with inputs; let let
mkNix = name: channel: channel.lib.nixosSystem { mkNix = name: channel: channel.lib.nixosSystem {
modules = [ (./hosts + "/${name}") ]; modules = [ (./hosts + "/${name}") ];
specialArgs = inputs; specialArgs = inputs;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgsUnstable, ... }: { config, lib, pkgs, ... }:
let let
commonKernelParams = [ commonKernelParams = [
# VM/GPU passthrough # VM/GPU passthrough
@ -13,7 +13,7 @@ let
in { in {
boot = { boot = {
# Latest kernel and IOMMU isolation # Latest kernel and IOMMU isolation
kernelPackages = pkgsUnstable.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ]; kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
# Load into GPU before video driver # Load into GPU before video driver

View file

@ -99,7 +99,7 @@
# Local files # Local files
h:${config.home.homeDirectory} h:${config.home.homeDirectory}
k:${config.home.homeDirectory}/Keepers k:${config.home.homeDirectory}/Keepers
j:${config.home.homeDirectory}/Downloads d:${config.home.homeDirectory}/Downloads
j:${config.home.homeDirectory}/Documents j:${config.home.homeDirectory}/Documents
p:${config.home.homeDirectory}/Photos p:${config.home.homeDirectory}/Photos
v:${config.home.homeDirectory}/Videos v:${config.home.homeDirectory}/Videos

View file

@ -9,6 +9,7 @@
./impermanence ./impermanence
./locale ./locale
./nix ./nix
./nixgl
./qt ./qt
./xdg ./xdg
]; ];

View file

@ -5,7 +5,8 @@
"file://${config.home.homeDirectory}/Downloads" "file://${config.home.homeDirectory}/Downloads"
"file://${config.home.homeDirectory}/Documents" "file://${config.home.homeDirectory}/Documents"
"file://${config.home.homeDirectory}/Videos" "file://${config.home.homeDirectory}/Videos"
"file://${config.home.homeDirectory}/Pictures/Screenshots" "file://${config.home.homeDirectory}/Photos"
"file://${config.home.homeDirectory}/Photos/Screenshots"
"file:///etc/nixos" "file:///etc/nixos"
]; ];
} }

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, stable, unstable, ... }: { config, pkgs, stable, unstable, ... }:
with pkgs; { with pkgs; {
nix.registry.stable.flake = stable; nix.registry.stable.flake = stable;
nix.registry.unstable.flake = unstable; nix.registry.unstable.flake = unstable;

View file

@ -1,6 +1,6 @@
{ config, lib, ... }: { config, lib, ... }:
with lib; { {
options.nixpkgs.allowUnfreePackages = mkOption { options.nixpkgs.allowUnfreePackages = with lib; mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = []; default = [];
}; };

View file

@ -0,0 +1,10 @@
{ config, lib, ... }:
{
nixGL = lib.mkIf config.targets.genericLinux.enable {
installScripts = [
"mesa"
"nvidia"
];
vulkan.enable = true;
};
}

View file

@ -3,11 +3,13 @@
xdg.userDirs = { xdg.userDirs = {
enable = config.home.desktop.enable; enable = config.home.desktop.enable;
createDirectories = true; createDirectories = true;
desktop = null; desktop = null;
pictures = "${config.home.homeDirectory}/Photos"; pictures = "${config.home.homeDirectory}/Photos";
music = null; music = null;
publicShare = null; publicShare = null;
templates = null; templates = null;
extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
}; };
} }

View file

@ -352,6 +352,16 @@
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
min-width: 20px; min-width: 20px;
} }
#scratchpad, #privacy {
margin-left: 4px;
}
#mpris, #custom-notifs, #idle_inhibitor, #custom-weather, #cpu, #memory, #custom-vram, #backlight, #battery {
margin: 0 5px 0 2px;
}
#pulseaudio {
margin-right: 5px;
}
#workspaces button.visible, #workspaces button.active { #workspaces button.visible, #workspaces button.active {
border-bottom: 3px solid #${config.look.colors.prime}; border-bottom: 3px solid #${config.look.colors.prime};
background: #${config.look.colors.mid}; background: #${config.look.colors.mid};
@ -363,23 +373,6 @@
box-shadow: none; box-shadow: none;
background: #${config.look.colors.light}; background: #${config.look.colors.light};
} }
#scratchpad, #privacy {
margin-left: 4px;
}
#mpris, #custom-notifs, #idle_inhibitor, #custom-weather, #cpu, #memory, #custom-vram, #backlight, #battery {
margin: 0 5px 0 2px;
}
#pulseaudio {
margin-right: 5px;
}
#mpris.paused, #custom-notifs.disabled, #idle_inhibitor.deactivated {
color: #888;
}
#pulseaudio.muted, #network.disconnected, #bluetooth.off {
color: #424242;
}
#mpris { #mpris {
border-bottom: 3px solid #ffb066; border-bottom: 3px solid #ffb066;
} }
@ -411,6 +404,13 @@
border-bottom: 3px solid #0a6cf5; border-bottom: 3px solid #0a6cf5;
margin: 0 2px 0 2px; margin: 0 2px 0 2px;
} }
#mpris.paused, #custom-notifs.disabled, #idle_inhibitor.deactivated {
color: #888;
}
#pulseaudio.muted, #network.disconnected, #bluetooth.off {
color: #424242;
}
''; '';
}; };
} }

View file

@ -1,11 +0,0 @@
{ config, lib, pkgs, stable, unstable, ... }:
with pkgs; {
_module.args.pkgsStable = import stable {
inherit (stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
_module.args.pkgsUnstable = import unstable {
inherit (stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
}

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
./channels
./gc ./gc
./unfree ./unfree
]; ];