forked from fabian/nix_config
it's forkin' time config de fabian
This commit is contained in:
parent
98a32736d6
commit
51a0965154
46 changed files with 119 additions and 1322 deletions
90
home/platforms/chem@yuki/default.nix
Normal file
90
home/platforms/chem@yuki/default.nix
Normal file
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
flakes,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./systemd
|
||||
./isolation.nix
|
||||
];
|
||||
|
||||
nix.registry = {
|
||||
"system".to = {
|
||||
type = "path";
|
||||
path = "/home/chem/nix";
|
||||
};
|
||||
|
||||
"nixpkgs".flake = flakes.nixpkgs;
|
||||
"unstable".flake = flakes.unstable;
|
||||
};
|
||||
|
||||
local = {
|
||||
baseline.enable = true;
|
||||
|
||||
services = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
prompt = "%B[%~] \${vcs_info_msg_0_}%b";
|
||||
};
|
||||
accounts.enable = true;
|
||||
deepState.enable = true;
|
||||
gpg = {
|
||||
enable = true;
|
||||
defaultKey = "7AA277E604A4173916BBB4E91FFAC35E1798174F";
|
||||
};
|
||||
syncthing.enable = true;
|
||||
};
|
||||
|
||||
apps = {
|
||||
terminal.enable = true;
|
||||
neovim.enable = true;
|
||||
gaming.enable = true;
|
||||
yubikey.enable = true;
|
||||
defaultDesktopPack.enable = true;
|
||||
firefox.enable = true;
|
||||
mapping.enable = true;
|
||||
};
|
||||
|
||||
gui = {
|
||||
enable = true;
|
||||
monitors = {
|
||||
DP-1 = {
|
||||
width = "1920";
|
||||
height = "1080";
|
||||
rate = "59.94";
|
||||
};
|
||||
DP-2 = {
|
||||
width = "1920";
|
||||
height = "1080";
|
||||
rate = "143.855";
|
||||
posX = "1920";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
darktable
|
||||
(gajim.override {
|
||||
enableSecrets = true;
|
||||
enableUPnP = true;
|
||||
enableAppIndicator = true;
|
||||
enableE2E = true;
|
||||
enableRST = true;
|
||||
})
|
||||
gnucash
|
||||
kdePackages.kdenlive
|
||||
nmap
|
||||
qbittorrent
|
||||
virt-manager
|
||||
];
|
||||
|
||||
username = "chem";
|
||||
homeDirectory = "/home/chem";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
22
home/platforms/chem@yuki/isolation.nix
Normal file
22
home/platforms/chem@yuki/isolation.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
home.isolation = {
|
||||
enable = true;
|
||||
btrfsSupport = true;
|
||||
defaults = {
|
||||
static = true;
|
||||
bindHome = "home/";
|
||||
persist = {
|
||||
base = "shenvs";
|
||||
btrfs = true;
|
||||
};
|
||||
};
|
||||
|
||||
modulesUnder = ./shenvs;
|
||||
};
|
||||
}
|
13
home/platforms/chem@yuki/shenvs/c.nix
Normal file
13
home/platforms/chem@yuki/shenvs/c.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
static = true;
|
||||
|
||||
packages = with pkgs; [
|
||||
binutils
|
||||
cmake
|
||||
curl
|
||||
gdb
|
||||
gnumake
|
||||
rustup
|
||||
valgrind
|
||||
];
|
||||
}
|
11
home/platforms/chem@yuki/shenvs/python.nix
Normal file
11
home/platforms/chem@yuki/shenvs/python.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
static = true;
|
||||
|
||||
packages = with pkgs; [
|
||||
pipenv
|
||||
(python310.withPackages (packages:
|
||||
with packages; [
|
||||
setuptools
|
||||
]))
|
||||
];
|
||||
}
|
10
home/platforms/chem@yuki/systemd/default.nix
Normal file
10
home/platforms/chem@yuki/systemd/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d %t/tmp 0700 chem chem 24h"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue