diff options
Diffstat (limited to '')
| -rw-r--r-- | flake.lock | 74 | ||||
| -rw-r--r-- | home/apps/caelestia/default.nix | 17 | ||||
| -rw-r--r-- | home/apps/caelestia/scheme.nix | 156 | ||||
| -rw-r--r-- | home/apps/caelestia/settings.nix | 391 | ||||
| -rw-r--r-- | home/browsers/firefox/default.nix | 5 | ||||
| -rw-r--r-- | home/default.nix | 5 | ||||
| -rw-r--r-- | hosts/shinji/default.nix | 1 | ||||
| -rw-r--r-- | hosts/shinji/hardware.nix | 7 | ||||
| -rw-r--r-- | pkgs/arcanist/default.nix | 59 | ||||
| -rw-r--r-- | shells/cuda.nix | 1 | ||||
| -rw-r--r-- | system/desktop.nix | 3 |
11 files changed, 388 insertions, 331 deletions
@@ -15,11 +15,11 @@ "sf-pro": "sf-pro" }, "locked": { - "lastModified": 1758228441, - "narHash": "sha256-3mA9oFuhJ1EHyhPd17g/EuJi4jDYPGhyxkEitdh3Kmc=", + "lastModified": 1768432053, + "narHash": "sha256-4zbGxDTG82KL8aGj7HOlx984eSHpWzGiN/vBBYKd2DE=", "owner": "Lyndeno", "repo": "apple-fonts.nix", - "rev": "aba9944f6606a69ebedf7bfb723316139eec3f72", + "rev": "00ee0281a803e545a8d7fc3ecee06aa27d3ae84c", "type": "github" }, "original": { @@ -116,11 +116,11 @@ ] }, "locked": { - "lastModified": 1768240563, - "narHash": "sha256-XQ+mFInCxJffKrT7EuwRn1srMeTtOP6VtUl0Qc1FM1g=", + "lastModified": 1768340025, + "narHash": "sha256-DocxpscHG9OKhGnFtC8KI9EtYxT0nRaQBImLNWe2j0A=", "ref": "refs/heads/main", - "rev": "473fa36da02bad465d2b53685efffae60b9620b7", - "revCount": 1733, + "rev": "fe45fb95bac47ca80cbaf661007f29b70f87a0b1", + "revCount": 1734, "type": "git", "url": "https://g.freya.cat/caelestia-shell" }, @@ -258,11 +258,11 @@ ] }, "locked": { - "lastModified": 1768238716, - "narHash": "sha256-q9fkcIZ1mhtzHhEr+yBxjm9mZRvT2iNo5/fob4rD3bQ=", + "lastModified": 1768530555, + "narHash": "sha256-EBXKDho4t1YSgodAL6C8M3UTm8MGMZNQ9rQnceR5+6c=", "owner": "nix-community", "repo": "home-manager", - "rev": "cdf6d7d594992939b5aa239674ada74a46720edc", + "rev": "d21bee5abf9fb4a42b2fa7728bf671f8bb246ba6", "type": "github" }, "original": { @@ -655,11 +655,11 @@ ] }, "locked": { - "lastModified": 1767736040, - "narHash": "sha256-DMte6hl0SQ/LhSIO578G8iK4RSnrxJAIJoE93sJOtS8=", + "lastModified": 1768536494, + "narHash": "sha256-HI383ZAczx9HWS24ggdzEpqe8oLhqC/qSL/R7BxUBqg=", "owner": "cynicsketch", "repo": "nix-mineral", - "rev": "39e3f2a8b58cde9e753be800d6c7b6050e84f81e", + "rev": "ae25a496714998203d01531830d3abf3015322a3", "type": "github" }, "original": { @@ -670,11 +670,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1767185284, - "narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=", + "lastModified": 1768584846, + "narHash": "sha256-IRPmIOV2tPwxbhP/I9M5AmwhTC0lMPtoPStC+8T6xl0=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "40b1a28dce561bea34858287fbb23052c3ee63fe", + "rev": "cce68f4a54fa4e3d633358364477f5cc1d782440", "type": "github" }, "original": { @@ -692,11 +692,11 @@ ] }, "locked": { - "lastModified": 1765841014, - "narHash": "sha256-55V0AJ36V5Egh4kMhWtDh117eE3GOjwq5LhwxDn9eHg=", + "lastModified": 1768404695, + "narHash": "sha256-eT3dNE2CQYcPDHaeRZAEFrZ0BmMq2wLxMp7hCmzOZBA=", "owner": "nix-community", "repo": "nixos-wsl", - "rev": "be4af8042e7a61fa12fda58fe9a3b3babdefe17b", + "rev": "d0d3636b9d174c4558e3bbb18e194d970505fed8", "type": "github" }, "original": { @@ -707,11 +707,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1768127708, - "narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=", + "lastModified": 1768305791, + "narHash": "sha256-AIdl6WAn9aymeaH/NvBj0H9qM+XuAuYbGMZaP0zcXAQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38", + "rev": "1412caf7bf9e660f2f962917c14b1ea1c3bc695e", "type": "github" }, "original": { @@ -779,11 +779,11 @@ ] }, "locked": { - "lastModified": 1767113149, - "narHash": "sha256-T4NvkU3N+2i41UENu9RuMYLJZSLE/CNuGGJEKsWXmrg=", + "lastModified": 1768356181, + "narHash": "sha256-lYx273nqNC1EslejL/yvf+ZJK+yApeUckibbpTyzxoM=", "owner": "miguel-b-p", "repo": "preload-ng", - "rev": "eb3c66a20d089ab2e3b8ff34c45c3d527584ed38", + "rev": "b2274bfa70f86c649ba4bddd5fd21c82ffccebe3", "type": "github" }, "original": { @@ -799,11 +799,11 @@ ] }, "locked": { - "lastModified": 1768204289, - "narHash": "sha256-aXPr9W8AEmPz9+dH8CHIwrppKIjtS3mHyOXR2ppH/aw=", + "lastModified": 1768549203, + "narHash": "sha256-DxN7v8g8DO8gGJmgBJMo3fsSR3HEs+DFCXeKeHq61zA=", "ref": "refs/heads/master", - "rev": "db37dc580afc9db1bc598436649c650138b6166d", - "revCount": 723, + "rev": "d03c59768c680f052dff6e7a7918bbf990b0f743", + "revCount": 727, "type": "git", "url": "https://git.outfoxxed.me/outfoxxed/quickshell" }, @@ -885,7 +885,7 @@ "sf-compact": { "flake": false, "locked": { - "narHash": "sha256-WeqT80cdK/XzTLSaJs5DHodzxoeAzwL/xTgdq0YwQbM=", + "narHash": "sha256-xIYPQ27C7wAAfN4Lm+3pXE7GGNO5ZgKGFRjr6WX5xlM=", "type": "file", "url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg" }, @@ -933,7 +933,7 @@ "sf-pro": { "flake": false, "locked": { - "narHash": "sha256-vprahHpCUf9O8RualBrEuLEfuLfzI/2d8AQmwlCGPPk=", + "narHash": "sha256-vxaW2oTdf7EuraHvdkF6JUfC580p56TgpquNw+GQDbQ=", "type": "file", "url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg" }, @@ -949,11 +949,11 @@ ] }, "locked": { - "lastModified": 1768104471, - "narHash": "sha256-HdnXWQsA1EI27IJlaENUEEug58trUrh6+MT0cFiDHmY=", + "lastModified": 1768481291, + "narHash": "sha256-NjKtkJraCZEnLHAJxLTI+BfdU//9coAz9p5TqveZwPU=", "owner": "Mic92", "repo": "sops-nix", - "rev": "94f9cbd20f680ebb2ad6cdf39da97cbcfaedf004", + "rev": "e085e303dfcce21adcb5fec535d65aacb066f101", "type": "github" }, "original": { @@ -1112,11 +1112,11 @@ ] }, "locked": { - "lastModified": 1768183082, - "narHash": "sha256-XsiMOsqRLfmUi+24F7adhb/GAM2dMvplzwaW2Wxg/lo=", + "lastModified": 1768379550, + "narHash": "sha256-z94S29l5V86h11LZbPIMbHTJyksDG63aqISsZkTTuJY=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "cdbc300fd89d503a95d1c8564de31a93d7b0a0ae", + "rev": "06f61b4e4f4f6ba8027c96a5611c63dc0db12b90", "type": "github" }, "original": { diff --git a/home/apps/caelestia/default.nix b/home/apps/caelestia/default.nix index 4693f67..e2e5e96 100644 --- a/home/apps/caelestia/default.nix +++ b/home/apps/caelestia/default.nix @@ -1,8 +1,11 @@ { lib, inputs, + config, ... }: let + inherit (lib) mkIf; + cfg = config.apps.caelestia; in { imports = [ inputs.caelestia-shell.homeManagerModules.default @@ -10,12 +13,14 @@ in { ./scheme.nix ]; - default.appLauncher = lib.mkOverride 600 "caelestia-shell ipc call drawers toggle launcher"; - default.lockScreen = lib.mkOverride 600 "caelestia-shell ipc call lock lock"; + config = mkIf cfg.enable { + default.appLauncher = lib.mkOverride 600 "caelestia-shell ipc call drawers toggle launcher"; + default.lockScreen = lib.mkOverride 600 "caelestia-shell ipc call lock lock"; - programs.caelestia = { - enable = true; - systemd.enable = true; - cli.enable = true; + programs.caelestia = { + enable = true; + systemd.enable = true; + cli.enable = true; + }; }; } diff --git a/home/apps/caelestia/scheme.nix b/home/apps/caelestia/scheme.nix index ffb46c6..b454b78 100644 --- a/home/apps/caelestia/scheme.nix +++ b/home/apps/caelestia/scheme.nix @@ -3,84 +3,88 @@ config, ... }: let + inherit (lib) mkIf; + cfg = config.apps.caelestia; theme = config.theme.colors; in { - xdg.configFile."caelestia/scheme.json".text = lib.generators.toJSON {} { - name = theme.name; - flavour = ""; - mode = "dark"; - variant = ""; - colours = { - primary_paletteKeyColor = theme.primary; - secondary_paletteKeyColor = theme.secondary; - tertiary_paletteKeyColor = theme.tertiary; - neutral_paletteKeyColor = theme.overlay; - neutral_variant_paletteKeyColor = "777680"; - background = theme.base; - onBackground = theme.text; - surface = theme.surface; - surfaceDim = theme.base; - surfaceBright = theme.overlay; - surfaceContainerLowest = theme.base; - surfaceContainerLow = theme.base; - surfaceContainer = theme.base; - surfaceContainerHigh = theme.surface; - surfaceContainerHighest = theme.overlay; - onSurface = theme.text; - surfaceVariant = theme.text; - onSurfaceVariant = theme.subtext; - inverseSurface = theme.text; - inverseOnSurface = theme.surface; - outline = theme.primary; - outlineVariant = theme.primary; - shadow = "000000"; - scrim = "000000"; - surfaceTint = theme.primary; - primary = theme.primary; - onPrimary = theme.surface; - primaryContainer = theme.primary; - onPrimaryContainer = theme.surface; - inversePrimary = theme.surface; - secondary = theme.secondary; - onSecondary = theme.surface; - secondaryContainer = theme.secondary; - onSecondaryContainer = theme.surface; - tertiary = theme.tertiary; - onTertiary = theme.surface; - tertiaryContainer = theme.tertiary; - onTertiaryContainer = theme.surface; - error = theme.error; - onError = theme.text; - errorContainer = theme.error; - onErrorContainer = theme.text; - primaryFixed = theme.primary; - primaryFixedDim = theme.primary; - onPrimaryFixed = theme.primary; - onPrimaryFixedVariant = theme.primary; - secondaryFixed = theme.secondary; - secondaryFixedDim = theme.primary; - onSecondaryFixed = theme.secondary; - onSecondaryFixedVariant = theme.secondary; - tertiaryFixed = theme.tertiary; - tertiaryFixedDim = theme.tertiary; - onTertiaryFixed = theme.tertiary; - onTertiaryFixedVariant = theme.tertiary; - term0 = theme.normal.black; - term1 = theme.normal.red; - term2 = theme.normal.green; - term3 = theme.normal.yellow; - term4 = theme.normal.blue; - term5 = theme.normal.magenta; - term6 = theme.normal.cyan; - term7 = theme.normal.white; - term8 = theme.bright.black; - term9 = theme.bright.red; - term10 = theme.bright.green; - term11 = theme.bright.yellow; - term12 = theme.bright.blue; - term13 = theme.bright.magenta; - term14 = theme.bright.cyan; - term15 = theme.bright.white; + config = mkIf cfg.enable { + xdg.configFile."caelestia/scheme.json".text = lib.generators.toJSON {} { + name = theme.name; + flavour = ""; + mode = "dark"; + variant = ""; + colours = { + primary_paletteKeyColor = theme.primary; + secondary_paletteKeyColor = theme.secondary; + tertiary_paletteKeyColor = theme.tertiary; + neutral_paletteKeyColor = theme.overlay; + neutral_variant_paletteKeyColor = "777680"; + background = theme.base; + onBackground = theme.text; + surface = theme.surface; + surfaceDim = theme.base; + surfaceBright = theme.overlay; + surfaceContainerLowest = theme.base; + surfaceContainerLow = theme.base; + surfaceContainer = theme.base; + surfaceContainerHigh = theme.surface; + surfaceContainerHighest = theme.overlay; + onSurface = theme.text; + surfaceVariant = theme.text; + onSurfaceVariant = theme.subtext; + inverseSurface = theme.text; + inverseOnSurface = theme.surface; + outline = theme.primary; + outlineVariant = theme.primary; + shadow = "000000"; + scrim = "000000"; + surfaceTint = theme.primary; + primary = theme.primary; + onPrimary = theme.surface; + primaryContainer = theme.primary; + onPrimaryContainer = theme.surface; + inversePrimary = theme.surface; + secondary = theme.secondary; + onSecondary = theme.surface; + secondaryContainer = theme.secondary; + onSecondaryContainer = theme.surface; + tertiary = theme.tertiary; + onTertiary = theme.surface; + tertiaryContainer = theme.tertiary; + onTertiaryContainer = theme.surface; + error = theme.error; + onError = theme.text; + errorContainer = theme.error; + onErrorContainer = theme.text; + primaryFixed = theme.primary; + primaryFixedDim = theme.primary; + onPrimaryFixed = theme.primary; + onPrimaryFixedVariant = theme.primary; + secondaryFixed = theme.secondary; + secondaryFixedDim = theme.primary; + onSecondaryFixed = theme.secondary; + onSecondaryFixedVariant = theme.secondary; + tertiaryFixed = theme.tertiary; + tertiaryFixedDim = theme.tertiary; + onTertiaryFixed = theme.tertiary; + onTertiaryFixedVariant = theme.tertiary; + term0 = theme.normal.black; + term1 = theme.normal.red; + term2 = theme.normal.green; + term3 = theme.normal.yellow; + term4 = theme.normal.blue; + term5 = theme.normal.magenta; + term6 = theme.normal.cyan; + term7 = theme.normal.white; + term8 = theme.bright.black; + term9 = theme.bright.red; + term10 = theme.bright.green; + term11 = theme.bright.yellow; + term12 = theme.bright.blue; + term13 = theme.bright.magenta; + term14 = theme.bright.cyan; + term15 = theme.bright.white; + }; }; }; } diff --git a/home/apps/caelestia/settings.nix b/home/apps/caelestia/settings.nix index d2b55a1..fbde95d 100644 --- a/home/apps/caelestia/settings.nix +++ b/home/apps/caelestia/settings.nix @@ -1,215 +1,224 @@ -{config, ...}: { - programs.caelestia = { - settings = { - # Look - appearance = rec { - # Rounding - rounding = let - inner = config.theme.innerRadius; - outer = config.theme.outerRadius; - in { - small = inner; - normal = outer; - large = outer + outer; - full = 1000; - }; +{ + config, + lib, + ... +}: let + inherit (lib) mkIf; + cfg = config.apps.caelestia; +in { + config = mkIf cfg.enable { + programs.caelestia = { + settings = { + # Look + appearance = rec { + # Rounding + rounding = let + inner = config.theme.innerRadius; + outer = config.theme.outerRadius; + in { + small = inner; + normal = outer; + large = outer + outer; + full = 1000; + }; - # Spacing - spacing = let - diff = 5; - in { - small = padding.small + diff; - smaller = padding.smaller + diff; - normal = padding.normal + diff; - larger = padding.larger + diff; - large = padding.large + diff; - }; + # Spacing + spacing = let + diff = 5; + in { + small = padding.small + diff; + smaller = padding.smaller + diff; + normal = padding.normal + diff; + larger = padding.larger + diff; + large = padding.large + diff; + }; - # Padding - padding = let - inner = config.theme.innerGap; - outer = config.theme.outerGap; - avg = builtins.div (outer + inner) 2; - in { - small = inner; - smaller = avg; - normal = outer; - larger = outer + inner; - large = outer + avg; - }; + # Padding + padding = let + inner = config.theme.innerGap; + outer = config.theme.outerGap; + avg = builtins.div (outer + inner) 2; + in { + small = inner; + smaller = avg; + normal = outer; + larger = outer + inner; + large = outer + avg; + }; - # Fontsize - font.size = let - base = config.theme.font.size; - in { - small = base - 2; - smaller = base - 1; - normal = base; - larger = base + 2; - large = base + 5; - extraLarge = base + 15; - }; + # Fontsize + font.size = let + base = config.theme.font.size; + in { + small = base - 2; + smaller = base - 1; + normal = base; + larger = base + 2; + large = base + 5; + extraLarge = base + 15; + }; - # Animations - anim = { - durations = { - scale = 1; + # Animations + anim = { + durations = { + scale = 1; + }; }; - }; - # Transparency - transparency = { - enabled = true; - base = config.theme.opacity; - layers = 1; + # Transparency + transparency = { + enabled = true; + base = config.theme.opacity; + layers = 1; + }; }; - }; - # Settings - general = { - # What apps to launch - apps = { - terminal = config.default.terminal; - audio = ["pavucontrol"]; - playback = ["mpv"]; + # Settings + general = { + # What apps to launch + apps = { + terminal = config.default.terminal; + audio = ["pavucontrol"]; + playback = ["mpv"]; + }; }; - }; - # Background - background.enabled = true; - paths = { - wallpaper = config.theme.wallpaper; - }; + # Background + background.enabled = true; + paths = { + wallpaper = config.theme.wallpaper; + }; - # Bar - bar = { - clock.showIcon = true; - dragThreshold = 20; - entries = - map (id: { - inherit id; + # Bar + bar = { + clock.showIcon = true; + dragThreshold = 20; + entries = + map (id: { + inherit id; + enabled = true; + }) [ + "workspaces" + "spacer" + "activeWindow" + "spacer" + "tray" + "clock" + "statusIcons" + "power" + ]; + persistent = true; + popouts = { + activeWindow = true; + statusIcons = true; + tray = true; + }; + scrollActions = { + brightness = true; + workspaces = true; + volume = true; + }; + showOnHover = true; + status = { + showAudio = false; + showBattery = true; + showBluetooth = true; + showKbLayout = false; + showMicrophone = false; + showNetwork = true; + showLockStatus = false; + }; + tray = { + background = false; + compact = false; + iconSubs = []; + recolour = false; + }; + workspaces = { + activeIndicator = true; + activeTrail = false; + perMonitorWorkspaces = true; + showWindows = false; + shown = 9; + label = ""; + occupiedLabel = ""; + activeLabel = ""; + }; + border = { + rounding = config.theme.outerRadius; + thickness = config.theme.outerGap; + }; + dashboard = { enabled = true; - }) [ - "workspaces" - "spacer" - "activeWindow" - "spacer" - "tray" - "clock" - "statusIcons" - "power" - ]; - persistent = true; - popouts = { - activeWindow = true; - statusIcons = true; - tray = true; - }; - scrollActions = { - brightness = true; - workspaces = true; - volume = true; - }; - showOnHover = true; - status = { - showAudio = false; - showBattery = true; - showBluetooth = true; - showKbLayout = false; - showMicrophone = false; - showNetwork = true; - showLockStatus = false; - }; - tray = { - background = false; - compact = false; - iconSubs = []; - recolour = false; - }; - workspaces = { - activeIndicator = true; - activeTrail = false; - perMonitorWorkspaces = true; - showWindows = false; - shown = 9; - label = ""; - occupiedLabel = ""; - activeLabel = ""; + dragThreshold = 50; + mediaUpdateInterval = 500; + showOnHover = true; + }; }; - border = { - rounding = config.theme.outerRadius; - thickness = config.theme.outerGap; + + # Notifications + notifs = { + actionOnClick = true; + clearThreshold = 0.3; + defaultExpireTimeout = 5000; + expandThreshold = 20; + openExpanded = false; + expire = true; }; - dashboard = { + + # On screen display + osd = { enabled = true; - dragThreshold = 50; - mediaUpdateInterval = 500; - showOnHover = true; + enableBrightness = true; + enableMicrophone = false; + hideDelay = 2000; }; - }; - # Notifications - notifs = { - actionOnClick = true; - clearThreshold = 0.3; - defaultExpireTimeout = 5000; - expandThreshold = 20; - openExpanded = false; - expire = true; - }; - - # On screen display - osd = { - enabled = true; - enableBrightness = true; - enableMicrophone = false; - hideDelay = 2000; - }; - - # Services - services = { - audioIncrement = 0.1; - brightnessIncrement = 0.1; - maxVolume = 1.0; - useFahrenheit = false; - useTwelveHourClock = false; - }; + # Services + services = { + audioIncrement = 0.1; + brightnessIncrement = 0.1; + maxVolume = 1.0; + useFahrenheit = false; + useTwelveHourClock = false; + }; - # Logout / shutdown - session = { - dragThreshold = 30; - enabled = true; - vimKeybinds = false; - commands = { - logout = ["loginctl" "terminate-user" ""]; - shutdown = ["systemctl" "poweroff"]; - hibernate = ["systemctl" "hibernate"]; - reboot = ["systemctl" "reboot"]; + # Logout / shutdown + session = { + dragThreshold = 30; + enabled = true; + vimKeybinds = false; + commands = { + logout = ["loginctl" "terminate-user" ""]; + shutdown = ["systemctl" "poweroff"]; + hibernate = ["systemctl" "hibernate"]; + reboot = ["systemctl" "reboot"]; + }; }; - }; - # Sidebar - sidebar = { - dragThreshold = 80; - enabled = true; - }; + # Sidebar + sidebar = { + dragThreshold = 80; + enabled = true; + }; - # idk - utilities = { - enabled = true; - maxToasts = 4; - toasts = { - audioInputChanged = true; - audioOutputChanged = true; - capsLockChanged = true; - chargingChanged = true; - configLoaded = true; - dndChanged = true; - gameModeChanged = true; - kbLayoutChanged = true; - numLockChanged = true; - vpnChanged = true; - nowPlaying = false; + # idk + utilities = { + enabled = true; + maxToasts = 4; + toasts = { + audioInputChanged = true; + audioOutputChanged = true; + capsLockChanged = true; + chargingChanged = true; + configLoaded = true; + dndChanged = true; + gameModeChanged = true; + kbLayoutChanged = true; + numLockChanged = true; + vpnChanged = true; + nowPlaying = false; + }; }; }; }; diff --git a/home/browsers/firefox/default.nix b/home/browsers/firefox/default.nix index c206092..578efe4 100644 --- a/home/browsers/firefox/default.nix +++ b/home/browsers/firefox/default.nix @@ -16,13 +16,16 @@ in { config = mkIf cfg.enable { default.browser = lib.mkDefault "firefox"; - programs.firefox = { + programs.firefox = rec { enable = true; package = my-firefox; # import configuration policies = import ./policies.nix {inherit config;}; + # use xdg dirs + configPath = "${config.xdg.configHome}/mozilla/firefox"; + # create profile for me :3 profiles.${config.user} = { search = { diff --git a/home/default.nix b/home/default.nix index f56be81..b716308 100644 --- a/home/default.nix +++ b/home/default.nix @@ -62,6 +62,9 @@ in { # mirrored from system ++ config.extraPackages; + # only enable dconf on desktop + dconf.enable = config.desktops.enable; + xdg = { enable = true; cacheHome = "${config.homePath}/.cache"; @@ -109,6 +112,7 @@ in { "image/tga" = "imv.desktop"; "image/bmp" = "imv.desktop"; "image/gif" = "imv.desktop"; + "image/svg+xml" = "imv.desktop"; # audio video "video/mp4" = "mpv.desktop"; @@ -160,6 +164,7 @@ in { JULIA_DEPOT_PATH = "${config.xdg.dataHome}/julia"; LEIN_HOME = "${config.xdg.dataHome}/lein"; MIN_HOME = "${config.xdg.dataHome}/mix"; + MOZ_HOME = "${config.xdg.configHome}/mozilla"; NODE_REPL_HISTORY = "${config.xdg.stateHome}/node_repl_history"; NPM_CONFIG_INIT_MODULE = "${config.xdg.configHome}/npm/config/npm-init.js"; NPM_CONFIG_CACHE = "${config.xdg.cacheHome}/npm"; diff --git a/hosts/shinji/default.nix b/hosts/shinji/default.nix index 65222e6..4bdf7f4 100644 --- a/hosts/shinji/default.nix +++ b/hosts/shinji/default.nix @@ -1,7 +1,6 @@ # Shinji # System configuration for my laptop { - lib, pkgs, inputs, system, diff --git a/hosts/shinji/hardware.nix b/hosts/shinji/hardware.nix index 1999c83..e7877b9 100644 --- a/hosts/shinji/hardware.nix +++ b/hosts/shinji/hardware.nix @@ -45,7 +45,7 @@ hardware.cpu.amd.updateMicrocode = true; # nvidia - services.xserver.videoDrivers = ["nvidia"]; + services.xserver.videoDrivers = ["modesetting" "nvidia"]; hardware.nvidia = { modesetting.enable = true; powerManagement = { @@ -53,7 +53,10 @@ finegrained = false; }; prime = { - sync.enable = true; + offload = { + enable = true; + enableOffloadCmd = true; + }; amdgpuBusId = "PCI:115:0:0"; nvidiaBusId = "PCI:1:0:0"; }; diff --git a/pkgs/arcanist/default.nix b/pkgs/arcanist/default.nix index 1ed7b50..9cdf8ed 100644 --- a/pkgs/arcanist/default.nix +++ b/pkgs/arcanist/default.nix @@ -1,31 +1,60 @@ -{pkgs}: -pkgs.stdenvNoCC.mkDerivation rec { +{ + lib, + stdenv, + fetchFromGitHub, + makeWrapper, + php82, + python3, + git, + diffutils, +}: +stdenv.mkDerivation rec { pname = "arcanist"; - version = "2025.18"; + version = "2025.51"; - src = pkgs.fetchFromGitHub { + src = fetchFromGitHub { owner = "phorgeit"; repo = "arcanist"; rev = version; - hash = "sha256-yiHLMcgszV9jP/8qb9X/t9Vfm3Ad7DpU55cafWPPQHY="; + hash = "sha256-muqNbQBLDOLhzVSF7vTckhb6ouIcj6tHR20CFsgv9bQ="; }; - buildInputs = with pkgs; [ + nativeBuildInputs = [makeWrapper]; + + dontBuild = true; + + buildInputs = [ php82 python3 - ]; - - propagatedInputs = with pkgs; [ git diffutils ]; + configurePhase = '' + runHook preConfigure + + patchShebangs . + + runHook postConfigure + ''; + installPhase = '' - mkdir -p $out/share/php/${pname} - mkdir -p $out/bin - cp -a * $out/share/php/${pname} - patchShebangs $out/share/php/${pname} - ln -s $out/share/php/${pname}/bin/arc $out/bin/arc - ln -sf ${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt $out/share/php/${pname}/resources/ssl/default.pem + runHook preInstall + mkdir -p $out/share/php/arcanist $out/bin + + cp --target-directory=$out/share/php/arcanist --recursive \ + bin externals resources scripts src support + + makeWrapper $out/share/php/arcanist/bin/arc $out/bin/arc \ + --inherit-argv0 \ + --chdir $out/share/php/arcanist \ + --prefix PATH : ${lib.makeBinPath buildInputs} + + makeWrapper $out/share/php/arcanist/bin/phage $out/bin/phage \ + --inherit-argv0 \ + --chdir $out/share/php/arcanist \ + --prefix PATH : ${lib.makeBinPath buildInputs} + + runHook postInstall ''; } diff --git a/shells/cuda.nix b/shells/cuda.nix index 3935296..8c9e608 100644 --- a/shells/cuda.nix +++ b/shells/cuda.nix @@ -9,6 +9,7 @@ cudaPackages.cuda_nvcc cudaPackages.cuda_cccl cudaPackages.cudnn + cudaPackages.nsight_compute cudatoolkit nvidiaPackage diff --git a/system/desktop.nix b/system/desktop.nix index 162fe94..8a37148 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -50,8 +50,7 @@ in { enable = true; drivers = with pkgs; [ brlaser - # FIXME: failes to compile - # cnijfilter2 + cnijfilter2 gutenprint ]; }; |