home-manager and stuff
This commit is contained in:
parent
395ec3d6e8
commit
622c443a60
3 changed files with 67 additions and 64 deletions
|
|
@ -17,12 +17,15 @@
|
|||
nix.settings.trusted-users = [ "root" "tristan" ];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.devices = ["nodev"];
|
||||
boot.loader.grub.useOSProber = true;
|
||||
boot.loader.systemd-boot.enable = 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.networkmanager.enable = true;
|
||||
|
||||
|
|
@ -50,12 +53,9 @@
|
|||
|
||||
# Configure graphical stuff
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
layout = "gb";
|
||||
xkbVariant = "dvorak";
|
||||
libinput.enable = true;
|
||||
|
||||
displayManager.lightdm.enable = true;
|
||||
};
|
||||
|
||||
qt5.enable = true;
|
||||
|
|
@ -71,18 +71,56 @@
|
|||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "video" ];
|
||||
initialPassword = "pass";
|
||||
shell = pkgs.zsh;
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
TERMINAL = "foot";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
foot
|
||||
brave
|
||||
tealdeer
|
||||
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;
|
||||
programs.light.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
|
@ -92,10 +130,10 @@
|
|||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
|
|
@ -110,18 +148,14 @@
|
|||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
|
||||
# Copy the NixOS configuration file and link it from the resulting system
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
# accidentally delete configuration.nix.
|
||||
# system.copySystemConfiguration = true;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# 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?
|
||||
system.stateVersion = "22.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue