Fix warnings

This commit is contained in:
Thomas Avé 2025-12-17 11:59:01 +01:00
parent 575ac34dbf
commit 97fdade25e
8 changed files with 18 additions and 14 deletions

View File

@ -31,8 +31,8 @@
outputs = { nixpkgs, home-manager, nur, nixos-06cb-009a-fingerprint-sensor, ... }@inputs: outputs = { nixpkgs, home-manager, nur, nixos-06cb-009a-fingerprint-sensor, ... }@inputs:
let let
stdenv.hostPlatform.system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${stdenv.hostPlatform.system}; pkgs = nixpkgs.legacyPackages.${system};
commonModules = host: user: [ commonModules = host: user: [
./hosts/${host}/hardware-configuration.nix ./hosts/${host}/hardware-configuration.nix
{ nixpkgs.overlays = [ { nixpkgs.overlays = [
@ -88,9 +88,13 @@
./hosts/${host} ./hosts/${host}
]; ];
mkSystem = host: cfg: mkSystem = host: cfg:
nixpkgs.lib.nixosSystem { let
system = cfg.system or "x86_64-linux"; system = cfg.system or "x86_64-linux";
modules = (commonModules host cfg.user) ++ (cfg.modules or [ ]); in
nixpkgs.lib.nixosSystem {
modules = (commonModules host cfg.user) ++ (cfg.modules or [ ]) ++ [
{ nixpkgs.hostPlatform = system; }
];
specialArgs = inputs; specialArgs = inputs;
}; };
systems = { systems = {

View File

@ -7,7 +7,7 @@
configDir = ./files; configDir = ./files;
extraPackages = with inputs.ags.packages.${pkgs.system}; [ extraPackages = with inputs.ags.packages.${pkgs.stdenv.hostPlatform.system}; [
pkgs.gtksourceview pkgs.gtksourceview
pkgs.accountsservice pkgs.accountsservice
pkgs.libadwaita pkgs.libadwaita

View File

@ -16,7 +16,7 @@
}: let }: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
extraPackages = with ags.packages.${pkgs.system}; [ extraPackages = with ags.packages.${pkgs.stdenv.hostPlatform.system}; [
pkgs.gtksourceview pkgs.gtksourceview
pkgs.accountsservice pkgs.accountsservice

View File

@ -4,11 +4,11 @@
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
aliases = {
s = "status";
a = "add";
};
settings = { settings = {
alias = {
s = "status";
a = "add";
};
user = { user = {
name = "Thomas Avé"; name = "Thomas Avé";
email = "email@thomasave.be"; email = "email@thomasave.be";

View File

@ -9,7 +9,7 @@ let
terminal = "${pkgs.foot}/bin/footclient"; terminal = "${pkgs.foot}/bin/footclient";
jq = "${pkgs.jq}/bin/jq"; jq = "${pkgs.jq}/bin/jq";
# workspace_command_prefix = "split-"; # workspace_command_prefix = "split-";
# hyprland_plugins = [ inputs.split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces ]; # hyprland_plugins = [ inputs.split-monitor-workspaces.packages.${pkgs.stdenv.hostPlatform.system}.split-monitor-workspaces ];
# workspace_command_prefix = "split:"; # workspace_command_prefix = "split:";
# hyprland_plugins = [ pkgs.hyprlandPlugins.hyprsplit ]; # hyprland_plugins = [ pkgs.hyprlandPlugins.hyprsplit ];

View File

@ -20,7 +20,7 @@
htop htop
ghostscript ghostscript
waypipe waypipe
inputs.worktimer.packages.${pkgs.system}.default inputs.worktimer.packages.${pkgs.stdenv.hostPlatform.system}.default
usbutils usbutils
gocryptfs gocryptfs
sshfs sshfs

View File

@ -3,7 +3,7 @@
{ {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
package = inputs.waybar.packages.${pkgs.system}.waybar; package = inputs.waybar.packages.${pkgs.stdenv.hostPlatform.system}.waybar;
settings = { settings = {
mainBar = { mainBar = {
layer = "top"; layer = "top";

View File

@ -12,7 +12,7 @@
pkgs.ripgrep pkgs.ripgrep
pkgs.rsync pkgs.rsync
pkgs.moreutils pkgs.moreutils
inputs.fzgo.packages.${pkgs.system}.default inputs.fzgo.packages.${pkgs.stdenv.hostPlatform.system}.default
]; ];
home.sessionVariables = { home.sessionVariables = {
BROWSER = "Helium"; BROWSER = "Helium";