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/gnome.nix
|
||||
../programs/java.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -70,12 +71,7 @@
|
|||
enable32Bit = true;
|
||||
};
|
||||
|
||||
hm = {
|
||||
imports = [
|
||||
../programs/java.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
hm.home = {
|
||||
packages = with pkgs; [
|
||||
chromium
|
||||
(discord.override {
|
||||
|
@ -99,7 +95,6 @@
|
|||
hunspellDicts.fr-moderne
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "fr_FR.UTF-8";
|
||||
|
|
|
@ -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,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (config.lib.file) mkOutOfStoreSymlink;
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = [ pkgs.jetbrains.rider ];
|
||||
environment.systemPackages = [ pkgs.jetbrains.rider ];
|
||||
|
||||
file = {
|
||||
".dotnet/8".source = mkOutOfStoreSymlink "${pkgs.dotnet-sdk_8}/share/dotnet";
|
||||
".dotnet/mono".source = mkOutOfStoreSymlink pkgs.mono;
|
||||
};
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"L /opt/dotnet/8 - - - - ${pkgs.dotnet-sdk_8}/share/dotnet"
|
||||
"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,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
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;
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"L /opt/temurin-21 - - - - ${pkgs.temurin-bin-21}"
|
||||
"L /opt/temurin-17 - - - - ${pkgs.temurin-bin-17}"
|
||||
"L /opt/temurin-8 - - - - ${pkgs.temurin-bin-8}"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -3,10 +3,9 @@
|
|||
imports = [
|
||||
camasca.nixosModules.asus-numpad
|
||||
../../programs/games.nix
|
||||
../../programs/dotnet.nix.nix
|
||||
];
|
||||
|
||||
hm.imports = [ ../../programs/dotnet.nix ];
|
||||
|
||||
services.asus-numpad = {
|
||||
enable = true;
|
||||
settings.layout = "M433IA";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue