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:
let
stdenv.hostPlatform.system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${stdenv.hostPlatform.system};
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
commonModules = host: user: [
./hosts/${host}/hardware-configuration.nix
{ nixpkgs.overlays = [
@ -88,9 +88,13 @@
./hosts/${host}
];
mkSystem = host: cfg:
nixpkgs.lib.nixosSystem {
let
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;
};
systems = {

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@ let
terminal = "${pkgs.foot}/bin/footclient";
jq = "${pkgs.jq}/bin/jq";
# 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:";
# hyprland_plugins = [ pkgs.hyprlandPlugins.hyprsplit ];

View File

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

View File

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

View File

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