add restruct2
This commit is contained in:
@@ -6,11 +6,9 @@
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in
|
||||
{
|
||||
in {
|
||||
users.users.adam = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
@@ -30,7 +28,7 @@ in
|
||||
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
../common
|
||||
../core
|
||||
../services/adampad.nix
|
||||
../hardware/adampad.nix
|
||||
../locale/adampad.nix
|
||||
@@ -38,31 +36,29 @@ in
|
||||
];
|
||||
|
||||
home-manager.users.adam = import ../../home/adam/home.nix;
|
||||
nix =
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in
|
||||
{
|
||||
settings = {
|
||||
auto-optimise-store = lib.mkDefault true;
|
||||
warn-dirty = false;
|
||||
# Enable flakes and new 'nix' command
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# Opinionated: disable global registry
|
||||
flake-registry = "";
|
||||
# Workaround for https://github.com/NixOS/nix/issues/9574
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
# Opinionated: disable channels
|
||||
channel.enable = false;
|
||||
|
||||
# Opinionated: make flake registry and nix path match flake inputs
|
||||
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
nix = let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in {
|
||||
settings = {
|
||||
auto-optimise-store = lib.mkDefault true;
|
||||
warn-dirty = false;
|
||||
# Enable flakes and new 'nix' command
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# Opinionated: disable global registry
|
||||
flake-registry = "";
|
||||
# Workaround for https://github.com/NixOS/nix/issues/9574
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
# Opinionated: disable channels
|
||||
channel.enable = false;
|
||||
|
||||
# Opinionated: make flake registry and nix path match flake inputs
|
||||
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
};
|
||||
|
||||
# Bootloader
|
||||
boot.loader = {
|
||||
|
||||
@@ -6,11 +6,9 @@
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||
in
|
||||
{
|
||||
in {
|
||||
users.users.cnst = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
@@ -30,7 +28,7 @@ in
|
||||
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
../common
|
||||
../core
|
||||
../extra/steam
|
||||
../extra/nix-ld
|
||||
../services/cnix.nix
|
||||
@@ -40,31 +38,29 @@ in
|
||||
];
|
||||
|
||||
home-manager.users.cnst = import ../../home/cnst/home.nix;
|
||||
nix =
|
||||
let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in
|
||||
{
|
||||
settings = {
|
||||
auto-optimise-store = lib.mkDefault true;
|
||||
warn-dirty = false;
|
||||
# Enable flakes and new 'nix' command
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# Opinionated: disable global registry
|
||||
flake-registry = "";
|
||||
# Workaround for https://github.com/NixOS/nix/issues/9574
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
# Opinionated: disable channels
|
||||
channel.enable = false;
|
||||
|
||||
# Opinionated: make flake registry and nix path match flake inputs
|
||||
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
nix = let
|
||||
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||
in {
|
||||
settings = {
|
||||
auto-optimise-store = lib.mkDefault true;
|
||||
warn-dirty = false;
|
||||
# Enable flakes and new 'nix' command
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
# Opinionated: disable global registry
|
||||
flake-registry = "";
|
||||
# Workaround for https://github.com/NixOS/nix/issues/9574
|
||||
nix-path = config.nix.nixPath;
|
||||
};
|
||||
# Opinionated: disable channels
|
||||
channel.enable = false;
|
||||
|
||||
# Opinionated: make flake registry and nix path match flake inputs
|
||||
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
|
||||
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||
};
|
||||
|
||||
# Bootloader
|
||||
boot.loader = {
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment = {
|
||||
systemPackages = [
|
||||
# Dev
|
||||
pkgs.pyright
|
||||
pkgs.python3
|
||||
pkgs.gcc
|
||||
pkgs.go
|
||||
pkgs.nodePackages_latest.npm
|
||||
pkgs.nodePackages_latest.nodejs
|
||||
pkgs.nodePackages.prettier
|
||||
pkgs.nodePackages.prettier-plugin-toml
|
||||
pkgs.lua-language-server
|
||||
pkgs.stylua
|
||||
pkgs.prettierd
|
||||
pkgs.cargo
|
||||
pkgs.hyprlang
|
||||
pkgs.nixd
|
||||
pkgs.nil
|
||||
pkgs.black
|
||||
pkgs.python312Packages.jedi-language-server
|
||||
pkgs.isort
|
||||
pkgs.bacon
|
||||
pkgs.clang
|
||||
pkgs.clang-tools
|
||||
pkgs.alejandra
|
||||
pkgs.nixpkgs-fmt
|
||||
|
||||
# Util
|
||||
pkgs.python312Packages.pip
|
||||
pkgs.tmux
|
||||
pkgs.tmuxifier
|
||||
];
|
||||
};
|
||||
}
|
||||
14
hosts/core/cnix-pkgs.nix
Normal file
14
hosts/core/cnix-pkgs.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{pkgs, ...}: {
|
||||
environment = {
|
||||
systemPackages = [
|
||||
# Dev
|
||||
pkgs.fd
|
||||
pkgs.python3
|
||||
pkgs.hyprlang
|
||||
|
||||
# Util
|
||||
pkgs.tmux
|
||||
pkgs.tmuxifier
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,91 @@
|
||||
{pkgs, ...}:
|
||||
{
|
||||
programs.nix-ld = {
|
||||
enable = true;
|
||||
};
|
||||
# Sets up all the libraries to load
|
||||
libraries = with pkgs; [
|
||||
stdenv.cc.cc
|
||||
openssl
|
||||
xorg.libXcomposite
|
||||
xorg.libXtst
|
||||
xorg.libXrandr
|
||||
xorg.libXext
|
||||
xorg.libX11
|
||||
xorg.libXfixes
|
||||
libGL
|
||||
libva
|
||||
xorg.libxcb
|
||||
xorg.libXdamage
|
||||
xorg.libxshmfence
|
||||
xorg.libXxf86vm
|
||||
libelf
|
||||
glib
|
||||
gtk3
|
||||
bzip2
|
||||
xorg.libXinerama
|
||||
xorg.libXcursor
|
||||
xorg.libXrender
|
||||
xorg.libXScrnSaver
|
||||
xorg.libXi
|
||||
xorg.libSM
|
||||
xorg.libICE
|
||||
gnome2.GConf
|
||||
nspr
|
||||
nss
|
||||
cups
|
||||
libcap
|
||||
SDL2
|
||||
libusb1
|
||||
dbus-glib
|
||||
ffmpeg
|
||||
libudev0-shim
|
||||
xorg.libXt
|
||||
xorg.libXmu
|
||||
libogg
|
||||
libvorbis
|
||||
SDL
|
||||
SDL2_image
|
||||
glew110
|
||||
libidn
|
||||
tbb
|
||||
flac
|
||||
freeglut
|
||||
libjpeg
|
||||
libpng
|
||||
libpng12
|
||||
libsamplerate
|
||||
libmikmod
|
||||
libtheora
|
||||
libtiff
|
||||
pixman
|
||||
speex
|
||||
SDL_image
|
||||
SDL_ttf
|
||||
SDL_mixer
|
||||
SDL2_ttf
|
||||
SDL2_mixer
|
||||
libappindicator-gtk2
|
||||
libdbusmenu-gtk2
|
||||
libindicator-gtk2
|
||||
libcaca
|
||||
libcanberra
|
||||
libgcrypt
|
||||
libvpx
|
||||
librsvg
|
||||
xorg.libXft
|
||||
libvdpau
|
||||
gnome2.pango
|
||||
cairo
|
||||
atk
|
||||
gdk-pixbuf
|
||||
fontconfig
|
||||
freetype
|
||||
dbus
|
||||
alsaLib
|
||||
expat
|
||||
libdrm
|
||||
mesa
|
||||
libxkbcommon
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
keyutils
|
||||
gamescope
|
||||
mangohud
|
||||
steam-run
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user