mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-08 09:24:17 +01:00
Combine system configuration with home-manager
This works well since I am not interested in different users on the same machine having different state, and keeps all the relevant configuration for specific programs in one file.
This commit is contained in:
parent
a9b7a93fd1
commit
9c64fffdc8
@ -24,8 +24,6 @@
|
||||
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||
networking.networkmanager.dns = "none";
|
||||
networking.useHostResolvConf = true;
|
||||
services.udisks2.enable = true;
|
||||
security.pam.services.swaylock = { };
|
||||
|
||||
systemd.extraConfig = ''
|
||||
DefaultTimeoutStopSec=10s
|
||||
@ -63,13 +61,6 @@
|
||||
services.vnstat.enable = true;
|
||||
services.tumbler.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.fish;
|
||||
environment.shells = with pkgs; [ fish ];
|
||||
@ -81,9 +72,7 @@
|
||||
[ "en_US.UTF-8/UTF-8" "ja_JP.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
||||
|
||||
services.xserver.enable = true;
|
||||
programs.thunar.enable = true;
|
||||
|
||||
programs.neovim.enable = true;
|
||||
programs.firejail.enable = true;
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
@ -92,14 +81,11 @@
|
||||
wget
|
||||
grim
|
||||
slurp
|
||||
librewolf
|
||||
kitty
|
||||
mullvad-vpn
|
||||
mullvad-browser
|
||||
papirus-icon-theme
|
||||
mediainfo
|
||||
pywal
|
||||
mpv
|
||||
mpc-cli
|
||||
neofetch
|
||||
tectonic
|
||||
@ -140,7 +126,6 @@
|
||||
lnch
|
||||
libnotify
|
||||
dwt1-shell-color-scripts
|
||||
tig
|
||||
dig
|
||||
trashy
|
||||
swaybg
|
||||
@ -156,16 +141,11 @@
|
||||
rustfmt
|
||||
cargo
|
||||
genact
|
||||
xfce.exo
|
||||
(pkgs.callPackage ./pkgs/srb2.nix {})
|
||||
];
|
||||
|
||||
i18n.inputMethod.enabled = "fcitx5";
|
||||
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
|
||||
|
||||
services.mullvad-vpn.enable = true;
|
||||
services.mullvad-vpn.enableExcludeWrapper = false;
|
||||
|
||||
networking.networkmanager.wifi.macAddress = "random";
|
||||
networking.networkmanager.ethernet.macAddress = "random";
|
||||
services.resolved.llmnr = "false";
|
||||
|
@ -1,4 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
i18n.inputMethod.enabled = "fcitx5";
|
||||
i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ];
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
xdg.configFile."fcitx5/config".force = true;
|
||||
xdg.configFile."fcitx5/config".text = ''
|
||||
|
@ -1,6 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.neovim.enable = true;
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
@ -1,4 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.ranger ];
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
xdg.configFile."ranger/rc.conf".text = ''
|
||||
set line_numbers absolute
|
||||
|
@ -1,6 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
security.pam.services.swaylock = { };
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
programs.swaylock = {
|
||||
package = pkgs."swaylock-effects";
|
||||
|
@ -1,4 +1,9 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.thunar.enable = true;
|
||||
environment.systemPackages = [ pkgs.xfce.exo ];
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
xdg.configFile."xfce4/helpers.rc".text = ''
|
||||
TerminalEmulator=kitty
|
||||
|
@ -1,4 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.tig ];
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
xdg.configFile."tig/config".text = ''
|
||||
color cursor black green bold
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
services.udisks2.enable = true;
|
||||
|
||||
home-manager.sharedModules = [{
|
||||
services.udiskie.enable = true;
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user