feat: Rename device.nix to default.nix for nixos and darwin

This commit is contained in:
uttarayan21
2025-01-03 00:59:40 +05:30
parent d41168c1be
commit ddf11f3ec0
4 changed files with 2 additions and 19 deletions

View File

@@ -216,10 +216,6 @@
if (builtins.hasAttr "monitors" device) if (builtins.hasAttr "monitors" device)
then device.monitors then device.monitors
else null; else null;
live =
if (builtins.hasAttr "live" device)
then device.live
else false;
system = device.system; system = device.system;
name = device.name; name = device.name;
user = device.user; user = device.user;
@@ -240,14 +236,14 @@
nixosConfigurations = let nixosConfigurations = let
devices = nixos_devices; devices = nixos_devices;
in in
import ./nixos/device.nix { import ./nixos {
inherit devices inputs nixpkgs home-manager overlays nur; inherit devices inputs nixpkgs home-manager overlays nur;
}; };
darwinConfigurations = let darwinConfigurations = let
devices = darwin_devices; devices = darwin_devices;
in in
import ./darwin/device.nix { import ./darwin {
inherit devices inputs nixpkgs home-manager overlays nix-darwin; inherit devices inputs nixpkgs home-manager overlays nix-darwin;
}; };

View File

@@ -24,17 +24,4 @@
enable = device.hasGui; enable = device.hasGui;
startInBackground = true; startInBackground = true;
}; };
# systemd.user.services.spotify-player = {
# Install = {WantedBy = ["graphical-session.target"];};
# Unit = {
# Description = "Spotify Player Daemon";
# After = ["graphical-session.target"];
# };
# Service = {
# ExecStart = "${pkgs.spotify-player}/bin/spotify_player -d";
# Restart = "on-failure";
# RestartSec = "5";
# User = "${device.user}";
# };
# };
} }