impure bitch

This commit is contained in:
Daylin Morgan 2023-01-25 21:59:27 -06:00
parent c434823995
commit 0230a9cf1b
5 changed files with 121 additions and 16 deletions

View file

@ -2,9 +2,9 @@ lint: ## format *.nix
nixpkgs-fmt .
boot: ## evaluate flake for next boot
sudo nixos-rebuild boot --flake .
sudo nixos-rebuild boot --flake .
switch: ## perform nixos rebuild
sudo nixos-rebuild switch --flake .
sudo nixos-rebuild switch --flake . --impure
-include .task.cfg.mk

View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1674584991,
"narHash": "sha256-2NqCy2ViyT/iOniL0UtrLi15z1TYfPYVj/iY4rWur3M=",
"lastModified": 1669833724,
"narHash": "sha256-/HEZNyGbnQecrgJnfE8d0WC5c1xuPSD2LUpB6YXlg4c=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "eb95aa0392d4a6f0eb3ac66eb0329397eafde4fb",
"rev": "4d2b37a84fad1091b9de401eb450aae66f1a741e",
"type": "github"
},
"original": {

View file

@ -13,10 +13,11 @@
nixos-vm = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# ./modules/configuration.nix
./modules/configuration.nix
./modules/overlays.nix
./modules/environment.nix
];
specialArgs = { inherit inputs; };
};
jeran = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -24,7 +25,6 @@
./hosts/jeran/configuration.nix
./hosts/jeran/motd.nix
./modules/environment.nix
];
specialArgs = { inherit inputs; };
};

104
modules/configuration.nix Normal file
View file

@ -0,0 +1,104 @@
{ inputs, lib, config, pkgs, ... }:
{
imports =
[
"${inputs.nixpkgs}/nixos/modules/installer/virtualbox-demo.nix"
];
nixpkgs.config.allowUnfree = true;
nix.package = pkgs.nixUnstable;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
boot.kernelPackages = pkgs.linuxPackages_latest;
virtualisation.virtualbox.guest.enable = true;
networking.hostName = "nixos-vm"; # Define your hostname.
time.timeZone = "America/Chicago";
programs.zsh.enable = true;
programs.nix-ld.enable = true;
services.xserver = {
enable = true;
displayManager.startx.enable = true;
displayManager.sddm.enable = lib.mkForce false;
displayManager.autoLogin.enable = lib.mkForce false;
windowManager.qtile.enable = true;
};
# Define a user account. Don't forget to set a password with passwd.
users = {
defaultUserShell = pkgs.zsh;
users.daylin = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
};
};
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-emoji
noto-fonts-extra
(nerdfonts.override { fonts = [ "FiraCode" "FiraMono" ]; })
];
environment.systemPackages = with pkgs; [
fuse
zsh
wget
unzip
less
gnumake
gcc
git
vim
neovim
starship
chezmoi
lsd
fzf
delta
gh
nixpkgs-fmt
xdotool
wezterm
eww
rofi
dunst
feh
picom
gtk3
gnome.adwaita-icon-theme
gnome.gnome-settings-daemon
catppuccin-gtk
wavebox
pciutils
(vivaldi.override {
proprietaryCodecs = true;
enableWidevine = false;
commandLineArgs = "--force-dark-mode";
})
vscode.fhs
go
rustup
];
}

View file

@ -8,13 +8,14 @@
issue.source = ../etc/issue;
};
# # environment.variables = {
# # NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
# # stdenv.cc.cc
# # openssl
# #
# # zlib # for delta
# # ];
# # NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
# # };
environment.variables = {
# NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
# stdenv.cc.cc
# openssl
#
# zlib # for delta
# ];
# this setting means needing to build --impure
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
};
}