fix: use systemd tmpfiles instead of home manager for symlinks
This commit is contained in:
parent
b7d3507b94
commit
b13c022ea4
4 changed files with 36 additions and 60 deletions
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
../programs/ghostty.nix
|
../programs/ghostty.nix
|
||||||
../programs/gnome.nix
|
../programs/gnome.nix
|
||||||
|
../programs/java.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
@ -70,35 +71,29 @@
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hm = {
|
hm.home = {
|
||||||
imports = [
|
packages = with pkgs; [
|
||||||
../programs/java.nix
|
chromium
|
||||||
|
(discord.override {
|
||||||
|
withOpenASAR = true;
|
||||||
|
withVencord = true;
|
||||||
|
})
|
||||||
|
gimp
|
||||||
|
gparted
|
||||||
|
idea-ultimate-fixed
|
||||||
|
mpv
|
||||||
|
obsidian
|
||||||
|
strawberry
|
||||||
|
teams-for-linux
|
||||||
|
thunderbird
|
||||||
|
vscode
|
||||||
|
|
||||||
|
# libreoffice stuff
|
||||||
|
libreoffice-qt6-fresh
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en_US
|
||||||
|
hunspellDicts.fr-moderne
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
|
||||||
packages = with pkgs; [
|
|
||||||
chromium
|
|
||||||
(discord.override {
|
|
||||||
withOpenASAR = true;
|
|
||||||
withVencord = true;
|
|
||||||
})
|
|
||||||
gimp
|
|
||||||
gparted
|
|
||||||
idea-ultimate-fixed
|
|
||||||
mpv
|
|
||||||
obsidian
|
|
||||||
strawberry
|
|
||||||
teams-for-linux
|
|
||||||
thunderbird
|
|
||||||
vscode
|
|
||||||
|
|
||||||
# libreoffice stuff
|
|
||||||
libreoffice-qt6-fresh
|
|
||||||
hunspell
|
|
||||||
hunspellDicts.en_US
|
|
||||||
hunspellDicts.fr-moderne
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
|
|
|
@ -1,19 +1,9 @@
|
||||||
# wee oo wee oo warning !!! this is a home manager module!!! destined to be put in hm's import, not nixos' !!!!
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
config,
|
environment.systemPackages = [ pkgs.jetbrains.rider ];
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
inherit (config.lib.file) mkOutOfStoreSymlink;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home = {
|
|
||||||
packages = [ pkgs.jetbrains.rider ];
|
|
||||||
|
|
||||||
file = {
|
systemd.tmpfiles.rules = [
|
||||||
".dotnet/8".source = mkOutOfStoreSymlink "${pkgs.dotnet-sdk_8}/share/dotnet";
|
"L /opt/dotnet/8 - - - - ${pkgs.dotnet-sdk_8}/share/dotnet"
|
||||||
".dotnet/mono".source = mkOutOfStoreSymlink pkgs.mono;
|
"L /opt/dotnet/mono - - - - ${pkgs.mono}"
|
||||||
};
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,8 @@
|
||||||
# wee oo wee oo warning !!! this is a home manager module!!! destined to be put in hm's import, not nixos' !!!!
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
config,
|
systemd.tmpfiles.rules = [
|
||||||
pkgs,
|
"L /opt/temurin-21 - - - - ${pkgs.temurin-bin-21}"
|
||||||
...
|
"L /opt/temurin-17 - - - - ${pkgs.temurin-bin-17}"
|
||||||
}:
|
"L /opt/temurin-8 - - - - ${pkgs.temurin-bin-8}"
|
||||||
let
|
];
|
||||||
inherit (config.lib.file) mkOutOfStoreSymlink;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
home.file = {
|
|
||||||
".jdks/temurin-21".source = mkOutOfStoreSymlink pkgs.temurin-bin-21;
|
|
||||||
".jdks/temurin-17".source = mkOutOfStoreSymlink pkgs.temurin-bin-17;
|
|
||||||
".jdks/temurin-8".source = mkOutOfStoreSymlink pkgs.temurin-bin-8;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,9 @@
|
||||||
imports = [
|
imports = [
|
||||||
camasca.nixosModules.asus-numpad
|
camasca.nixosModules.asus-numpad
|
||||||
../../programs/games.nix
|
../../programs/games.nix
|
||||||
|
../../programs/dotnet.nix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hm.imports = [ ../../programs/dotnet.nix ];
|
|
||||||
|
|
||||||
services.asus-numpad = {
|
services.asus-numpad = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.layout = "M433IA";
|
settings.layout = "M433IA";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue