mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 06:30:10 +03:00
delete old code
This commit is contained in:
@@ -1,112 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
let
|
|
||||||
homeModule =
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [ ] ++ (builtins.attrValues inputs.self.homeModules);
|
|
||||||
xdg = {
|
|
||||||
enable = true;
|
|
||||||
autostart.enable = true;
|
|
||||||
configFile = {
|
|
||||||
"beets" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/beets/linux";
|
|
||||||
target = "beets";
|
|
||||||
};
|
|
||||||
"ludusavi" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/ludusavi/cfg";
|
|
||||||
target = "ludusavi";
|
|
||||||
};
|
|
||||||
"solaar" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/solaar";
|
|
||||||
target = "solaar";
|
|
||||||
};
|
|
||||||
"easyeffects" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/easyeffects";
|
|
||||||
target = "easyeffects";
|
|
||||||
};
|
|
||||||
"keepassxc" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/KeePassXC";
|
|
||||||
target = "keepassxc";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
dataFile = {
|
|
||||||
"PrismLauncher" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.vetymae-drive}/Games/PrismLauncher";
|
|
||||||
target = "PrismLauncher";
|
|
||||||
};
|
|
||||||
"v2rayN" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/v2rayN";
|
|
||||||
target = "v2rayN";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
createDirectories = true;
|
|
||||||
desktop = "${config.xdg.dataHome}/desktop";
|
|
||||||
documents = null;
|
|
||||||
download = "${config.home.homeDirectory}/Downloads";
|
|
||||||
music = "${config.home.homeDirectory}/Music";
|
|
||||||
pictures = "${config.home.homeDirectory}/Pictures";
|
|
||||||
publicShare = "${config.home.homeDirectory}/Misc/Public";
|
|
||||||
templates = null;
|
|
||||||
videos = "${config.home.homeDirectory}/Pictures/Videos";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
|
||||||
username = "${config.xlib.devices.admin}";
|
|
||||||
file = {
|
|
||||||
"ssh" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.user-storage}/ssh/${config.home.username}";
|
|
||||||
target = ".ssh";
|
|
||||||
};
|
|
||||||
"External" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.therima-drive}";
|
|
||||||
target = "External";
|
|
||||||
};
|
|
||||||
"LM Studio" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink "${config.xlib.dirs.vetymae-drive}/AI/LM Studio";
|
|
||||||
target = ".lmstudio";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
pointerCursor = {
|
|
||||||
enable = true;
|
|
||||||
x11.enable = true;
|
|
||||||
gtk.enable = true;
|
|
||||||
size = 24;
|
|
||||||
name = "Qogir";
|
|
||||||
package = pkgs.qogir-icon-theme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixosModule =
|
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users.${config.xlib.devices.admin} = homeModule;
|
|
||||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit (config.networking) hostName;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
in
|
|
||||||
(
|
|
||||||
(inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
modules = [
|
|
||||||
homeModule
|
|
||||||
];
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
inherit nixosModule;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
home = {
|
|
||||||
stateVersion = lib.mkDefault "25.05";
|
|
||||||
homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
|
||||||
enableNixpkgsReleaseCheck = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
# Paths
|
|
||||||
beetsPath = "${config.xlib.dirs.storage}/beets/linux";
|
|
||||||
sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.self.homeModules.minimal
|
|
||||||
];
|
|
||||||
xdg = {
|
|
||||||
configFile = {
|
|
||||||
"beets" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
||||||
target = "beets";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
autostart.enable = true;
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
createDirectories = false;
|
|
||||||
desktop = null;
|
|
||||||
documents = null;
|
|
||||||
download = null;
|
|
||||||
music = null;
|
|
||||||
pictures = null;
|
|
||||||
publicShare = null;
|
|
||||||
templates = null;
|
|
||||||
videos = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
file = {
|
|
||||||
".ssh" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink sshPath;
|
|
||||||
target = ".ssh";
|
|
||||||
};
|
|
||||||
"Music" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
target = "${config.home.homeDirectory}/Music";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
# Paths
|
|
||||||
beetsPath = "${config.xlib.dirs.wsl-storage}/beets/linux";
|
|
||||||
#sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
||||||
externalPath = "${config.xlib.dirs.wsl-home}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.self.homeModules.minimal
|
|
||||||
];
|
|
||||||
xdg = {
|
|
||||||
enable = true;
|
|
||||||
autostart.enable = true;
|
|
||||||
configFile = {
|
|
||||||
"beets" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
||||||
target = "beets";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# userDirs = {
|
|
||||||
# enable = false;
|
|
||||||
# createDirectories = false;
|
|
||||||
# desktop = null;
|
|
||||||
# documents = null;
|
|
||||||
# download = null;
|
|
||||||
# music = null;
|
|
||||||
# pictures = null;
|
|
||||||
# publicShare = null;
|
|
||||||
# templates = null;
|
|
||||||
# videos = null;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
#username = "${config.xlib.devices.admin}";
|
|
||||||
file = {
|
|
||||||
"External" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
|
||||||
target = "External";
|
|
||||||
};
|
|
||||||
"Music" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
target = "${config.home.homeDirectory}/Music";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# pointerCursor = {
|
|
||||||
# enable = true;
|
|
||||||
# x11.enable = true;
|
|
||||||
# gtk.enable = true;
|
|
||||||
# size = 24;
|
|
||||||
# name = "Qogir";
|
|
||||||
# package = pkgs.qogir-icon-theme;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
let
|
|
||||||
homeModule =
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = with inputs; [
|
|
||||||
self.homeModules.default
|
|
||||||
self.homeModules.plasma-manager
|
|
||||||
];
|
|
||||||
home = {
|
|
||||||
username = "root";
|
|
||||||
homeDirectory = "/${config.home.username}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixosModule =
|
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users.root = homeModule;
|
|
||||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
(
|
|
||||||
(inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
modules = [
|
|
||||||
homeModule
|
|
||||||
];
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
inherit nixosModule;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
let
|
|
||||||
homeModule =
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
# Paths
|
|
||||||
beetsPath = "${config.xlib.dirs.storage}/beets/linux";
|
|
||||||
sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./minimal.nix
|
|
||||||
];
|
|
||||||
xdg = {
|
|
||||||
configFile = {
|
|
||||||
"beets" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
||||||
target = "beets";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
enable = true;
|
|
||||||
autostart.enable = true;
|
|
||||||
userDirs = {
|
|
||||||
enable = true;
|
|
||||||
createDirectories = false;
|
|
||||||
desktop = null;
|
|
||||||
documents = null;
|
|
||||||
download = null;
|
|
||||||
music = null;
|
|
||||||
pictures = null;
|
|
||||||
publicShare = null;
|
|
||||||
templates = null;
|
|
||||||
videos = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
home = {
|
|
||||||
file = {
|
|
||||||
".ssh" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink sshPath;
|
|
||||||
target = ".ssh";
|
|
||||||
};
|
|
||||||
"Music" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
target = "${config.home.homeDirectory}/Music";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
username = "${config.xlib.devices.admin}";
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
nixosModule =
|
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users.${config.xlib.devices.admin} = homeModule;
|
|
||||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
(
|
|
||||||
(inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
modules = [
|
|
||||||
homeModule
|
|
||||||
];
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
inherit nixosModule;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
{ inputs, ... }@flakeContext:
|
|
||||||
let
|
|
||||||
homeModule =
|
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
# Paths
|
|
||||||
beetsPath = "${config.xlib.dirs.wsl-storage}/beets/linux";
|
|
||||||
#sshPath = "${config.xlib.dirs.storage}/ssh/${config.xlib.devices.server.hostname}";
|
|
||||||
musicPath = "${config.home.homeDirectory}/External/Music";
|
|
||||||
externalPath = "${config.xlib.dirs.wsl-home}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.self.homeModules.default
|
|
||||||
];
|
|
||||||
xdg = {
|
|
||||||
enable = true;
|
|
||||||
autostart.enable = true;
|
|
||||||
configFile = {
|
|
||||||
"beets" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
|
|
||||||
target = "beets";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# userDirs = {
|
|
||||||
# enable = false;
|
|
||||||
# createDirectories = false;
|
|
||||||
# desktop = null;
|
|
||||||
# documents = null;
|
|
||||||
# download = null;
|
|
||||||
# music = null;
|
|
||||||
# pictures = null;
|
|
||||||
# publicShare = null;
|
|
||||||
# templates = null;
|
|
||||||
# videos = null;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
|
||||||
#username = "${config.xlib.devices.admin}";
|
|
||||||
file = {
|
|
||||||
"External" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink externalPath;
|
|
||||||
target = "External";
|
|
||||||
};
|
|
||||||
"Music" = {
|
|
||||||
source = config.lib.file.mkOutOfStoreSymlink musicPath;
|
|
||||||
target = "${config.home.homeDirectory}/Music";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# pointerCursor = {
|
|
||||||
# enable = true;
|
|
||||||
# x11.enable = true;
|
|
||||||
# gtk.enable = true;
|
|
||||||
# size = 24;
|
|
||||||
# name = "Qogir";
|
|
||||||
# package = pkgs.qogir-icon-theme;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nixosModule =
|
|
||||||
{ config, ... }:
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
users.${config.xlib.devices.admin} = homeModule;
|
|
||||||
# sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
|
||||||
# extraSpecialArgs = {
|
|
||||||
# inherit (config.networking) hostName;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
in
|
|
||||||
(
|
|
||||||
(inputs.home-manager.lib.homeManagerConfiguration {
|
|
||||||
modules = [
|
|
||||||
homeModule
|
|
||||||
];
|
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
inherit nixosModule;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user