home-manager and stuff
This commit is contained in:
parent
395ec3d6e8
commit
622c443a60
3 changed files with 67 additions and 64 deletions
|
|
@ -27,10 +27,15 @@
|
||||||
hyprland.nixosModules.default
|
hyprland.nixosModules.default
|
||||||
{programs.hyprland.enable = true;}
|
{programs.hyprland.enable = true;}
|
||||||
./system/configuration.nix
|
./system/configuration.nix
|
||||||
|
home-manager.nixosModules.home-manager {
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.tristan = {
|
||||||
|
imports = [ ./users/tristan/home.nix ];
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,15 @@
|
||||||
nix.settings.trusted-users = [ "root" "tristan" ];
|
nix.settings.trusted-users = [ "root" "tristan" ];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.grub.version = 2;
|
|
||||||
boot.loader.grub.devices = ["nodev"];
|
|
||||||
boot.loader.grub.useOSProber = true;
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# boot.loader.grub.enable = true;
|
||||||
|
# boot.loader.grub.version = 2;
|
||||||
|
# boot.loader.grub.devices = ["nodev"];
|
||||||
|
# boot.loader.grub.useOSProber = true;
|
||||||
|
# boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "zenix";
|
networking.hostName = "zenix";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
@ -50,12 +53,9 @@
|
||||||
|
|
||||||
# Configure graphical stuff
|
# Configure graphical stuff
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = false;
|
||||||
layout = "gb";
|
layout = "gb";
|
||||||
xkbVariant = "dvorak";
|
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
|
|
||||||
displayManager.lightdm.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
qt5.enable = true;
|
qt5.enable = true;
|
||||||
|
|
@ -71,18 +71,56 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "video" ];
|
extraGroups = [ "wheel" "video" ];
|
||||||
initialPassword = "pass";
|
initialPassword = "pass";
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.fish;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "nvim";
|
||||||
|
TERMINAL = "foot";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
foot
|
||||||
|
brave
|
||||||
tealdeer
|
tealdeer
|
||||||
alsa-utils
|
alsa-utils
|
||||||
neovim
|
tofi
|
||||||
|
waybar
|
||||||
|
swaylock-effects
|
||||||
|
bitwarden-cli
|
||||||
|
bitwarden
|
||||||
|
pcmanfm
|
||||||
|
pavucontrol
|
||||||
|
exa
|
||||||
|
(neovim.override {
|
||||||
|
vimAlias = true;
|
||||||
|
configure = {
|
||||||
|
packages.myPlugins = with pkgs.vimPlugins; {
|
||||||
|
start = [ vim-surround vim-commentary vim-nix ];
|
||||||
|
opt = [];
|
||||||
|
};
|
||||||
|
customRC = ''
|
||||||
|
vnoremap * y/\V<C-R>=escape(@",'/\')<CR><CR>
|
||||||
|
vnoremap <C-R> "ry:%s/<C-R>=escape(@r,'/\')<CR>
|
||||||
|
vnoremap A :norm A
|
||||||
|
set number
|
||||||
|
set rnu
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set mouse=a
|
||||||
|
set path=.,**
|
||||||
|
let g:netrw_banner=0
|
||||||
|
let g:netrw_liststyle=3
|
||||||
|
set undofile
|
||||||
|
set undodir=~/.local/share/nvim/undo
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
programs.zsh.enable = true;
|
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -92,10 +130,10 @@
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
# programs.gnupg.agent = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
enableSSHSupport = true;
|
# enableSSHSupport = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
|
@ -110,18 +148,14 @@
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
networking.firewall.checkReversePath = "loose";
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
# accidentally delete configuration.nix.
|
# accidentally delete configuration.nix.
|
||||||
# system.copySystemConfiguration = true;
|
# system.copySystemConfiguration = true;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
# settings for stateful data, like file locations and database versions
|
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
||||||
# this value at the release version of the first install of this system.
|
|
||||||
# Before changing this value read the documentation for this option
|
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
||||||
system.stateVersion = "23.05"; # Did you read the comment?
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, user, ... }:
|
||||||
let
|
{
|
||||||
doom-emacs = pkgs.callPackage (builtins.fetchTarball {
|
|
||||||
url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
|
|
||||||
}) {
|
|
||||||
doomPrivateDir = ./doom.d; # Directory containing your config.el, init.el
|
|
||||||
# and packages.el files
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = "tristan";
|
home.username = "tristan";
|
||||||
|
|
@ -26,36 +19,7 @@ in {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
brave
|
|
||||||
pcmanfm
|
|
||||||
lf
|
|
||||||
chafa
|
|
||||||
imv
|
|
||||||
mpv
|
|
||||||
mpvScripts.mpris
|
|
||||||
sway
|
|
||||||
swaylock
|
|
||||||
waybar
|
|
||||||
wofi
|
|
||||||
foot
|
|
||||||
neovim
|
|
||||||
git
|
|
||||||
neofetch
|
|
||||||
fusuma
|
|
||||||
ffmpeg
|
|
||||||
motion
|
|
||||||
trash-cli
|
|
||||||
tailscale
|
|
||||||
spotifyd
|
|
||||||
htop
|
|
||||||
mosh
|
|
||||||
tmux
|
|
||||||
doom-emacs
|
|
||||||
wget
|
|
||||||
wev
|
|
||||||
gimp
|
gimp
|
||||||
thunderbird
|
|
||||||
nextcloud-client
|
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue