fmt
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./modules
|
||||
./variables
|
||||
@@ -8,7 +9,10 @@
|
||||
username = "cnst";
|
||||
homeDirectory = "/home/cnst";
|
||||
stateVersion = "23.11";
|
||||
extraOutputsToInstall = ["doc" "devdoc"];
|
||||
extraOutputsToInstall = [
|
||||
"doc"
|
||||
"devdoc"
|
||||
];
|
||||
packages = with pkgs; [
|
||||
bun
|
||||
];
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
{osConfig, ...}: let
|
||||
{ osConfig, ... }:
|
||||
let
|
||||
hostSpecificImports =
|
||||
if osConfig.networking.hostName == "bunk"
|
||||
then [
|
||||
./bunkmod.nix
|
||||
]
|
||||
else [
|
||||
./kimamod.nix
|
||||
];
|
||||
in {
|
||||
if osConfig.networking.hostName == "bunk" then
|
||||
[
|
||||
./bunkmod.nix
|
||||
]
|
||||
else
|
||||
[
|
||||
./kimamod.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
imports = hostSpecificImports;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
{osConfig, ...}: let
|
||||
{ osConfig, ... }:
|
||||
let
|
||||
hostSpecificVariables =
|
||||
if osConfig.networking.hostName == "bunk"
|
||||
then {
|
||||
BROWSER = "zen";
|
||||
EDITOR = "hx";
|
||||
TERM = "xterm-256color";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
}
|
||||
else {
|
||||
BROWSER = "zen";
|
||||
EDITOR = "hx";
|
||||
TERM = "xterm-256color";
|
||||
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
in {
|
||||
if osConfig.networking.hostName == "bunk" then
|
||||
{
|
||||
BROWSER = "zen";
|
||||
EDITOR = "hx";
|
||||
TERM = "xterm-256color";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
}
|
||||
else
|
||||
{
|
||||
BROWSER = "zen";
|
||||
EDITOR = "hx";
|
||||
TERM = "xterm-256color";
|
||||
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
};
|
||||
in
|
||||
{
|
||||
home.sessionVariables = hostSpecificVariables;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
extraSpecialArgs = {inherit inputs self;};
|
||||
}:
|
||||
let
|
||||
extraSpecialArgs = { inherit inputs self; };
|
||||
|
||||
sharedImports = [
|
||||
"${self}/scripts"
|
||||
@@ -12,16 +13,12 @@
|
||||
];
|
||||
|
||||
homeImports = {
|
||||
"cnst@kima" =
|
||||
sharedImports
|
||||
++ [
|
||||
./cnst
|
||||
];
|
||||
"cnst@bunk" =
|
||||
sharedImports
|
||||
++ [
|
||||
./cnst
|
||||
];
|
||||
"cnst@kima" = sharedImports ++ [
|
||||
./cnst
|
||||
];
|
||||
"cnst@bunk" = sharedImports ++ [
|
||||
./cnst
|
||||
];
|
||||
# "cnst@sobotka" =
|
||||
# sharedImports
|
||||
# ++ [
|
||||
@@ -32,30 +29,30 @@
|
||||
# ++ [
|
||||
# ./cnst
|
||||
# ];
|
||||
"toothpick@toothpc" =
|
||||
sharedImports
|
||||
++ [
|
||||
./toothpick
|
||||
];
|
||||
"toothpick@toothpc" = sharedImports ++ [
|
||||
./toothpick
|
||||
];
|
||||
};
|
||||
|
||||
inherit (inputs.hm.lib) homeManagerConfiguration;
|
||||
|
||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
||||
|
||||
makeHomeConfiguration = modules:
|
||||
makeHomeConfiguration =
|
||||
modules:
|
||||
homeManagerConfiguration {
|
||||
inherit pkgs extraSpecialArgs modules;
|
||||
};
|
||||
in {
|
||||
_module.args = {inherit homeImports;};
|
||||
in
|
||||
{
|
||||
_module.args = { inherit homeImports; };
|
||||
|
||||
flake = {
|
||||
homeConfigurations = builtins.listToAttrs (map
|
||||
(name: {
|
||||
name = builtins.replaceStrings ["@"] ["_"] name;
|
||||
homeConfigurations = builtins.listToAttrs (
|
||||
map (name: {
|
||||
name = builtins.replaceStrings [ "@" ] [ "_" ] name;
|
||||
value = makeHomeConfiguration homeImports.${name};
|
||||
})
|
||||
(builtins.attrNames homeImports));
|
||||
}) (builtins.attrNames homeImports)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./modules
|
||||
];
|
||||
@@ -7,7 +8,10 @@
|
||||
username = "toothpick";
|
||||
homeDirectory = "/home/toothpick";
|
||||
stateVersion = "23.11";
|
||||
extraOutputsToInstall = ["doc" "devdoc"];
|
||||
extraOutputsToInstall = [
|
||||
"doc"
|
||||
"devdoc"
|
||||
];
|
||||
|
||||
packages = with pkgs; [
|
||||
filezilla
|
||||
|
||||
Reference in New Issue
Block a user