Compare commits
3 commits
5c21588430
...
63d99f2062
Author | SHA1 | Date | |
---|---|---|---|
63d99f2062 | |||
689c291762 | |||
7b77f05476 |
22 changed files with 468 additions and 421 deletions
|
@ -5,16 +5,13 @@
|
|||
_utils,
|
||||
agenix,
|
||||
camasca,
|
||||
home-manager,
|
||||
hjem,
|
||||
nixpkgs,
|
||||
nix-index-database,
|
||||
vencord,
|
||||
...
|
||||
}:
|
||||
let
|
||||
username = "leo";
|
||||
stateVersion = "24.11";
|
||||
|
||||
rootPassword = _utils.setupSingleSecret config "rootPassword" { };
|
||||
secrets = _utils.setupSharedSecrets config {
|
||||
secrets = [ "userPassword" ];
|
||||
|
@ -23,10 +20,10 @@ in
|
|||
{
|
||||
imports = [
|
||||
agenix.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
hjem.nixosModules.default
|
||||
nix-index-database.nixosModules.nix-index
|
||||
|
||||
(lib.mkAliasOptionModule [ "hm" ] [ "home-manager" "users" username ])
|
||||
(lib.mkAliasOptionModule [ "hj" ] [ "hjem" "users" "leo" "files" ])
|
||||
|
||||
rootPassword.generate
|
||||
secrets.generate
|
||||
|
@ -71,21 +68,17 @@ in
|
|||
wget
|
||||
];
|
||||
|
||||
hm = {
|
||||
home = { inherit stateVersion; };
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
addKeysToAgent = "yes";
|
||||
forwardAgent = true;
|
||||
hjem = {
|
||||
clobberByDefault = true;
|
||||
users.leo.files = {
|
||||
".ssh/config".text = ''
|
||||
Host *
|
||||
ForwardAgent yes
|
||||
AddKeysToAgent yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
networking = {
|
||||
|
@ -196,7 +189,7 @@ in
|
|||
time.timeZone = "Europe/Paris";
|
||||
|
||||
users.users = {
|
||||
"${username}" = {
|
||||
leo = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [
|
||||
|
@ -225,5 +218,5 @@ in
|
|||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = lib.mkDefault stateVersion; # Did you read the comment?
|
||||
system.stateVersion = lib.mkDefault "24.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
../programs/ghostty.nix
|
||||
../programs/gnome.nix
|
||||
../programs/java.nix
|
||||
../programs/neovim/neovide.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -44,8 +45,30 @@
|
|||
sbctl
|
||||
wl-clipboard
|
||||
|
||||
chromium
|
||||
(discord.override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
})
|
||||
gimp3
|
||||
gparted
|
||||
idea-wrapped
|
||||
mpv
|
||||
obsidian
|
||||
strawberry
|
||||
teams-for-linux
|
||||
thunderbird
|
||||
vscode
|
||||
|
||||
niigo-miku-cursors
|
||||
patchouli-cursors
|
||||
|
||||
# libreoffice stuff
|
||||
libreoffice-qt6-fresh
|
||||
hunspell
|
||||
hunspellDicts.en_US
|
||||
hunspellDicts.fr-moderne
|
||||
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
|
@ -77,32 +100,6 @@
|
|||
enable32Bit = true;
|
||||
};
|
||||
|
||||
hm.imports = [ ../programs/neovim/neovide.nix ];
|
||||
hm.home = {
|
||||
packages = with pkgs; [
|
||||
chromium
|
||||
(discord.override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
})
|
||||
gimp3
|
||||
gparted
|
||||
idea-wrapped
|
||||
mpv
|
||||
obsidian
|
||||
strawberry
|
||||
teams-for-linux
|
||||
thunderbird
|
||||
vscode
|
||||
|
||||
# libreoffice stuff
|
||||
libreoffice-qt6-fresh
|
||||
hunspell
|
||||
hunspellDicts.en_US
|
||||
hunspellDicts.fr-moderne
|
||||
];
|
||||
};
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "fr_FR.UTF-8";
|
||||
LC_IDENTIFICATION = "fr_FR.UTF-8";
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
_utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -32,8 +33,10 @@
|
|||
|
||||
# hyprland stuff
|
||||
services.blueman = lib.mkIf config.programs.hyprland.enable { enable = true; };
|
||||
hm.wayland.windowManager.hyprland.settings.exec-once = with pkgs; [
|
||||
hj.".config/hypr/hyprland.conf".text = _utils.toHyprconf {
|
||||
exec-once = with pkgs; [
|
||||
"${lib.getExe networkmanagerapplet}"
|
||||
"${lib.getExe' blueman "blueman-applet"}"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
22
flake.lock
generated
22
flake.lock
generated
|
@ -3,9 +3,7 @@
|
|||
"agenix": {
|
||||
"inputs": {
|
||||
"darwin": [],
|
||||
"home-manager": [
|
||||
"home-manager"
|
||||
],
|
||||
"home-manager": [],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
|
@ -145,23 +143,23 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"hjem": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1746413188,
|
||||
"narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
|
||||
"lastModified": 1746355589,
|
||||
"narHash": "sha256-LguszqsDBTtdBxblQTtN7vOAYmfoe43aHkB8aK1dChE=",
|
||||
"owner": "feel-co",
|
||||
"repo": "hjem",
|
||||
"rev": "77b37eeb583d43e1c723119a69c906235174ce57",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"owner": "feel-co",
|
||||
"repo": "hjem",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
@ -283,7 +281,7 @@
|
|||
"flake-parts": "flake-parts",
|
||||
"flake-utils": "flake-utils",
|
||||
"getchvim": "getchvim",
|
||||
"home-manager": "home-manager",
|
||||
"hjem": "hjem",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"mystia": "mystia",
|
||||
"nix-index-database": "nix-index-database",
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
url = "github:uku3lig/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.systems.follows = "systems";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
inputs.home-manager.follows = "";
|
||||
inputs.darwin.follows = "";
|
||||
};
|
||||
|
||||
|
@ -89,8 +89,8 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
hjem = {
|
||||
url = "github:feel-co/hjem";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
|
|
|
@ -111,4 +111,62 @@
|
|||
alias = builtins.toString (pkgs.writeTextDir filename content) + "/";
|
||||
tryFiles = "${filename} =${builtins.toString status}";
|
||||
};
|
||||
|
||||
# https://github.com/nix-community/home-manager/blob/ec71b5162848e6369bdf2be8d2f1dd41cded88e8/modules/lib/generators.nix#L4-L61
|
||||
toHyprconf =
|
||||
attrs:
|
||||
let
|
||||
inherit (lib)
|
||||
all
|
||||
concatMapStringsSep
|
||||
concatStrings
|
||||
concatStringsSep
|
||||
filterAttrs
|
||||
foldl
|
||||
generators
|
||||
hasPrefix
|
||||
isAttrs
|
||||
isList
|
||||
mapAttrsToList
|
||||
replicate
|
||||
;
|
||||
|
||||
indentLevel = 0;
|
||||
importantPrefixes = [ "$" ];
|
||||
initialIndent = concatStrings (replicate indentLevel " ");
|
||||
|
||||
toHyprconf' =
|
||||
indent: attrs:
|
||||
let
|
||||
sections = filterAttrs (n: v: isAttrs v || (isList v && all isAttrs v)) attrs;
|
||||
|
||||
mkSection =
|
||||
n: attrs:
|
||||
if lib.isList attrs then
|
||||
(concatMapStringsSep "\n" (a: mkSection n a) attrs)
|
||||
else
|
||||
''
|
||||
${indent}${n} {
|
||||
${toHyprconf' " ${indent}" attrs}${indent}}
|
||||
'';
|
||||
|
||||
mkFields = generators.toKeyValue {
|
||||
listsAsDuplicateKeys = true;
|
||||
inherit indent;
|
||||
};
|
||||
|
||||
allFields = filterAttrs (n: v: !(isAttrs v || (isList v && all isAttrs v))) attrs;
|
||||
|
||||
isImportantField =
|
||||
n: _: foldl (acc: prev: if hasPrefix prev n then true else acc) false importantPrefixes;
|
||||
|
||||
importantFields = filterAttrs isImportantField allFields;
|
||||
|
||||
fields = builtins.removeAttrs allFields (mapAttrsToList (n: _: n) importantFields);
|
||||
in
|
||||
mkFields importantFields
|
||||
+ concatStringsSep "\n" (mapAttrsToList mkSection sections)
|
||||
+ mkFields fields;
|
||||
in
|
||||
toHyprconf' initialIndent attrs;
|
||||
}
|
||||
|
|
|
@ -3,24 +3,23 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
hm.programs.alacritty =
|
||||
let
|
||||
let
|
||||
toml = pkgs.formats.toml { };
|
||||
|
||||
theme = pkgs.fetchurl {
|
||||
# url = "https://raw.githubusercontent.com/catppuccin/alacritty/ce476fb41f307d90f841c1a4fd7f0727c21248b2/catppuccin-macchiato.toml";
|
||||
url = "https://raw.githubusercontent.com/rose-pine/alacritty/3c3e36eb5225b0eb6f1aa989f9d9e783a5b47a83/dist/rose-pine.toml";
|
||||
hash = "sha256-MheSmzz02ZLAOS2uaclyazu6E//eikcdFydFfkio0/U=";
|
||||
};
|
||||
|
||||
themeAttr = builtins.fromTOML (builtins.readFile theme);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
settings = lib.recursiveUpdate themeAttr {
|
||||
in
|
||||
{
|
||||
hj.".config/alacritty/alacritty.toml".source = toml.generate "alacritty.toml" (
|
||||
lib.recursiveUpdate themeAttr {
|
||||
font = {
|
||||
normal.family = "Iosevka Nerd Font";
|
||||
size = 12;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
@ -6,17 +6,16 @@
|
|||
fishPlugins.hydro
|
||||
];
|
||||
|
||||
hm.programs.fish = {
|
||||
enable = true;
|
||||
hj.".config/fish/config.fish".text = ''
|
||||
function fish_greeting
|
||||
end
|
||||
|
||||
interactiveShellInit = ''
|
||||
if status is-interactive
|
||||
set --global hydro_symbol_git_dirty "*"
|
||||
set --global hydro_color_pwd blue
|
||||
set --global hydro_color_git magenta
|
||||
set --global hydro_color_prompt green
|
||||
set --global hydro_color_duration yellow
|
||||
end
|
||||
'';
|
||||
|
||||
functions.fish_greeting = "";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
hm.programs.fuzzel = {
|
||||
enable = true;
|
||||
settings = {
|
||||
environment.systemPackages = [ pkgs.fuzzel ];
|
||||
|
||||
hj.".config/fuzzel/fuzzel.ini".text = lib.generators.toINI { } {
|
||||
main = {
|
||||
font = "Iosevka Nerd Font:size=16";
|
||||
dpi-aware = false;
|
||||
|
@ -20,5 +21,4 @@
|
|||
selection-match = "40a02bff"; # latte green
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
xpadneo.enable = true;
|
||||
};
|
||||
|
||||
hm.home.packages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
obs-studio
|
||||
osu-lazer-bin
|
||||
krita
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
hm.programs.ghostty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "light:catppuccin-latte,dark:catppuccin-mocha";
|
||||
font-family = "Iosevka Term";
|
||||
font-size = 12;
|
||||
font-feature = [
|
||||
"-calt"
|
||||
"-dlig"
|
||||
];
|
||||
};
|
||||
};
|
||||
environment.systemPackages = [ pkgs.ghostty ];
|
||||
|
||||
hj.".config/ghostty/config".text = ''
|
||||
font-family = Iosevka Term
|
||||
font-feature = -calt
|
||||
font-feature = -dlig
|
||||
font-size = 12
|
||||
theme = light:catppuccin-latte,dark:catppuccin-mocha
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
{ config, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.git.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
gh
|
||||
];
|
||||
|
||||
hm.programs = {
|
||||
git = {
|
||||
inherit (config.programs.git) enable package;
|
||||
userName = "uku";
|
||||
userEmail = "hi@uku.moe";
|
||||
|
||||
signing = {
|
||||
format = "ssh";
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+7+KfdOrhcnHayxvOENUeMx8rE4XEIV/AxMHiaNUP8";
|
||||
signByDefault = true;
|
||||
hj = {
|
||||
".gitconfig".text = lib.generators.toGitINI {
|
||||
user = {
|
||||
name = "uku";
|
||||
email = "hi@uku.moe";
|
||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+7+KfdOrhcnHayxvOENUeMx8rE4XEIV/AxMHiaNUP8";
|
||||
};
|
||||
|
||||
# delta.enable = true;
|
||||
commit = {
|
||||
gpgSign = true;
|
||||
verbose = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
gpg.format = "ssh";
|
||||
tag.gpgSign = true;
|
||||
core.autocrlf = "input";
|
||||
push.autoSetupRemote = true;
|
||||
diff.submodule = "log";
|
||||
init.defaultBranch = "main";
|
||||
merge.conflictStyle = "zdiff3";
|
||||
push.autoSetupRemote = true;
|
||||
rebase.autoStash = true;
|
||||
status.submoduleSummary = true;
|
||||
diff.submodule = "log";
|
||||
submodule.recurse = true;
|
||||
commit.verbose = true;
|
||||
};
|
||||
};
|
||||
|
||||
gh = {
|
||||
enable = true;
|
||||
".config/gh/config.yml".text = lib.generators.toYAML { } {
|
||||
settings.git_protocol = "ssh";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -16,14 +16,6 @@
|
|||
terminal = "ghostty";
|
||||
};
|
||||
|
||||
hm.programs.gnome-shell = {
|
||||
enable = true;
|
||||
extensions = with pkgs.gnomeExtensions; [
|
||||
{ package = appindicator; }
|
||||
{ package = dash-to-panel; }
|
||||
];
|
||||
};
|
||||
|
||||
# ssh-agent is provided by gnome-keyring-daemon
|
||||
# (mabye soon by gcr, see NixOS/nixpkgs#140824)
|
||||
programs.ssh.startAgent = lib.mkForce false;
|
||||
|
@ -32,6 +24,8 @@
|
|||
systemPackages = [
|
||||
adw-gtk3
|
||||
gnome-tweaks
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.dash-to-panel
|
||||
];
|
||||
|
||||
gnome.excludePackages = [
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# utility packages for hyprland, since you know it's not a DE
|
||||
|
||||
hm.home.packages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome.gnome-calculator
|
||||
mate.eom
|
||||
nwg-look
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
_utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -23,8 +24,7 @@
|
|||
|
||||
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||
|
||||
hm = {
|
||||
home.packages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
hyprpaper
|
||||
hyprpicker
|
||||
wl-clipboard
|
||||
|
@ -36,9 +36,7 @@
|
|||
polkit_gnome
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings =
|
||||
hj.".config/hypr/hyprland.conf".text =
|
||||
let
|
||||
inherit (lib) getExe getExe';
|
||||
keys = [
|
||||
|
@ -55,7 +53,7 @@
|
|||
];
|
||||
in
|
||||
with pkgs;
|
||||
{
|
||||
_utils.toHyprconf {
|
||||
"$mod" = "SUPER";
|
||||
"$wl-paste" = getExe' wl-clipboard "wl-paste";
|
||||
"$wpctl" = getExe' wireplumber "wpctl";
|
||||
|
@ -185,6 +183,4 @@
|
|||
"$mod SHIFT, mouse:272, resizewindow"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# home-manager module
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.neovide = {
|
||||
enable = true;
|
||||
settings.fork = true;
|
||||
};
|
||||
environment.systemPackages = [ pkgs.neovide ];
|
||||
|
||||
hj.".config/neovide/config.toml".text = "fork = true";
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@ let
|
|||
toml = pkgs.formats.toml { };
|
||||
in
|
||||
{
|
||||
hm.home.file.".cargo/config.toml".source = toml.generate "config.toml" {
|
||||
build.target-dir = "${config.hm.home.homeDirectory}/.cargo/target";
|
||||
hj.".cargo/config.toml".source = toml.generate "config.toml" {
|
||||
build.target-dir = "${config.hjem.users.leo.directory}/.cargo/target";
|
||||
|
||||
target.x86_64-unknown-linux-gnu = {
|
||||
linker = "${lib.getExe pkgs.clang}";
|
||||
|
|
|
@ -1,13 +1,24 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
toml = pkgs.formats.toml { };
|
||||
in
|
||||
{
|
||||
hm.programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
environment.systemPackages = [ pkgs.starship ];
|
||||
|
||||
hj = {
|
||||
".config/starship.toml" =
|
||||
toml.generate "starship.toml" {
|
||||
add_newline = false;
|
||||
|
||||
directory = {
|
||||
truncation_length = 3;
|
||||
truncation_symbol = "…/";
|
||||
};
|
||||
} // (import ./nerd-font.nix);
|
||||
}
|
||||
// (import ./nerd-font.nix);
|
||||
|
||||
".config/fish/config.fish".text = lib.mkAfter ''
|
||||
starship init fish | source
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
hm.programs.waybar = {
|
||||
enable = true;
|
||||
style = ./style.css;
|
||||
environment.systemPackages = [ pkgs.waybar ];
|
||||
|
||||
settings = [
|
||||
{
|
||||
hj = {
|
||||
".config/waybar/style.css".source = ./style.css;
|
||||
|
||||
".config/waybar/config".text = builtins.toJSON {
|
||||
position = "bottom";
|
||||
layer = "top";
|
||||
height = 24;
|
||||
|
@ -91,7 +91,6 @@
|
|||
return-type = "";
|
||||
interval = 2;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, _utils, ... }:
|
||||
{
|
||||
imports = [
|
||||
./nvidia.nix
|
||||
|
@ -7,20 +7,16 @@
|
|||
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
|
||||
hm = {
|
||||
home.packages = with pkgs; [
|
||||
environment.systemPackages = with pkgs; [
|
||||
wineWowPackages.waylandFull
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
hj.".config/hypr/hyprland.conf".text = _utils.toHyprconf {
|
||||
monitor = "DP-1,3840x2160@144,0x0,1.5";
|
||||
|
||||
xwayland.force_zero_scaling = true;
|
||||
|
||||
env = [
|
||||
"GDK_SCALE,1.5"
|
||||
"XCURSOR_SIZE,24"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
_utils,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -37,10 +38,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
hm.wayland.windowManager.hyprland.settings.env = [
|
||||
hj.".config/hypr/hyprland.conf".text = _utils.toHyprconf {
|
||||
env = [
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"GBM_BACKEND,nvidia-drm"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
"NVD_BACKEND,direct"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,9 +29,14 @@ in
|
|||
|
||||
i18n.defaultLocale = lib.mkForce "fr_FR.UTF-8";
|
||||
|
||||
hm.programs = {
|
||||
git.includes = [ { path = "~/.config/git/work_config"; } ];
|
||||
ssh.includes = [ "work_config" ];
|
||||
hj = {
|
||||
".gitconfig".text = lib.generators.toGitINI {
|
||||
include.path = "~/.config/git/work_config";
|
||||
};
|
||||
|
||||
".ssh/config".text = lib.mkBefore ''
|
||||
Include work_config
|
||||
'';
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8000 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue