resturcting of nixos 2
This commit is contained in:
@@ -1,72 +0,0 @@
|
||||
# This file (and the global directory) holds config that i use on all hosts
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./adb.nix
|
||||
./zsh.nix
|
||||
./fonts.nix
|
||||
./hyprland.nix
|
||||
];
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs;
|
||||
};
|
||||
};
|
||||
nixpkgs = {
|
||||
overlays = [];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
input-fonts.acceptLicense = true;
|
||||
};
|
||||
};
|
||||
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
|
||||
console.useXkbConfig = true;
|
||||
|
||||
environment = {
|
||||
localBinInPath = true;
|
||||
systemPackages = with pkgs; [
|
||||
# Core
|
||||
git
|
||||
sbctl
|
||||
niv
|
||||
nix-output-monitor
|
||||
nvd
|
||||
|
||||
# Util
|
||||
stow
|
||||
wget
|
||||
curl
|
||||
ripgrep
|
||||
python312Packages.oauth2
|
||||
python312Packages.httplib2
|
||||
killall
|
||||
tree-sitter
|
||||
lazygit
|
||||
tmux
|
||||
tmuxifier
|
||||
unzip
|
||||
p7zip
|
||||
unrar
|
||||
xdg-utils
|
||||
xdg-user-dirs
|
||||
ntfs3g
|
||||
gnome-disk-utility
|
||||
wlroots
|
||||
fzf
|
||||
udiskie
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
{pkgs, ...}: {
|
||||
services = {
|
||||
dbus.packages = with pkgs; [
|
||||
gcr
|
||||
];
|
||||
udisks2.enable = true;
|
||||
gvfs.enable = true;
|
||||
blueman.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
mullvad-vpn = {
|
||||
enable = true;
|
||||
package = pkgs.mullvad-vpn;
|
||||
};
|
||||
greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = "${pkgs.hyprland}/bin/Hyprland";
|
||||
user = "adam";
|
||||
};
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -r --remember-session";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
extraLayouts.hhkbse = {
|
||||
description = "HHKBse by cnst";
|
||||
languages = ["se"];
|
||||
symbolsFile = /home/cnst/.nix-config/hosts/cnix/xkb/symbols/hhkbse;
|
||||
};
|
||||
layout = "hhkbse";
|
||||
# dir = "/home/cnst/.nix-config/nixos/xkb";
|
||||
variant = "";
|
||||
options = "lv3:rwin_switch";
|
||||
};
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
#jack.enable = true;
|
||||
#media-session.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
./greetd.nix
|
||||
./xserver.nix
|
||||
./openssh.nix
|
||||
./mullvad.nix
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user