nix: use unstable and add home-manager

This commit is contained in:
2023-09-21 11:10:43 +02:00
parent 627b92a611
commit 37b5eafb42
4 changed files with 75 additions and 41 deletions

View File

@ -2,14 +2,22 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ inputs, config, pkgs, ... }:
let python-packages = ps: with ps; [ ];
in rec {
imports = [ # Include the results of the hardware scan.
imports = [
./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager
];
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users.julian = import ./home.nix;
};
# Bootloader
# Use this for simple nix boot menu, if no dual boot required
boot.loader.systemd-boot.enable = true;
@ -84,7 +92,7 @@ in rec {
services.xserver.windowManager.i3.extraPackages = with pkgs; [
rofi
i3lock
unstable.i3status-rust
i3status-rust
nitrogen
];
@ -140,7 +148,7 @@ in rec {
makemkv
audacity
gnome.cheese
unstable.zoom-us
zoom-us
qutebrowser
unetbootin
@ -152,6 +160,8 @@ in rec {
];
};
programs.zsh.enable = true;
users.groups.julian = { gid = 1000; };
# users.groups.wolfi = { gid = 1001; };
@ -166,9 +176,7 @@ in rec {
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# nixpkgs.config.packageOverrides = pkgs: {
# unstable = import <nixos-unstable> { config = config.nixpkgs.config; };
# };
nixpkgs.config.nvidia.acceptLicense = true;
environment.etc."manual-links/xfce4-notifyd".source =
"${pkgs.xfce.xfce4-notifyd}/lib/xfce4/notifyd/xfce4-notifyd";
@ -257,7 +265,6 @@ in rec {
python3
black
libnotify
# unstable.tor-browser-bundle-bin
libclang
libreoffice
killall
@ -326,7 +333,7 @@ in rec {
})
];
fonts.fonts = with pkgs; [
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
font-awesome
dejavu_fonts