This commit is contained in:
Steph 2024-12-03 10:13:54 +01:00
parent 0eb34021ac
commit 91b17f861a
6 changed files with 29 additions and 13 deletions

View File

@ -3,11 +3,12 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-2405.url = "github:nixos/nixpkgs/nixos-24.05";
home.url = "github:nix-community/home-manager";
home.inputs.nixpkgs.follows = "nixpkgs";
firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; };
firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme/v133"; flake = false; };
firefox-macos-theme = {url = "github:AdamXweb/WhiteSurFirefoxThemeMacOS"; flake = false; };
firefox-addons = { url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; };
@ -15,7 +16,7 @@
mac-app-util.url = "github:hraban/mac-app-util";
};
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons, nur, nix-darwin, firefox-macos-theme, mac-app-util }@inputs: {
outputs = { self, nixpkgs, home, firefox-gnome-theme, firefox-addons, nur, nix-darwin, firefox-macos-theme, mac-app-util, nixpkgs-2405 }@inputs: {
nixosConfigurations.iota = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

View File

@ -45,9 +45,15 @@
zip
coreutils
zotero
ollama
inputs.nixpkgs-2405.legacyPackages.${system}.signal-desktop-beta
# fonts
(nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
nerd-fonts.fira-code
nerd-fonts.fira-mono
nerd-fonts.droid-sans-mono
borg-sans-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji

View File

@ -7,7 +7,7 @@
];
nix = {
package = pkgs.nixFlakes;
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
'';
@ -16,6 +16,7 @@
networking.networkmanager.enable = true;
services.wg-netmanager.enable = true;
time.timeZone = "Europe/Amsterdam";
@ -47,7 +48,6 @@
services.printing.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
@ -91,7 +91,7 @@
udev
usbutils
gnome.gnome-tweaks
gnome-tweaks
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.clipboard-history
@ -101,11 +101,11 @@
aspell
aspellDicts.en
aspellDicts.nl
gnome.networkmanager-openvpn
networkmanager-openvpn
];
services.udev.packages = with pkgs; [
gnome.gnome-settings-daemon
gnome-settings-daemon
android-udev-rules
];
services.fprintd.enable = true;

View File

@ -85,4 +85,4 @@
"picture-uri" = "${config.home.homeDirectory}/.background-image";
};
};
}
}

View File

@ -44,13 +44,20 @@
free = "free -h";
toupper = "tr [:lower:] [:upper:]";
tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then ''
nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo
rebuild = if (os == "linux") then ''
cd $HOME/.local/os &&
nix flake update --commit-lock-file
nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo &&
cd -
'' else ''
home-manager switch
cd $HOME/.local/os &&
nix flake update --commit-lock-file
home-manager switch &&
cd -
'';
":r" = "!!";
":wq" = "exit";
vim = "hx";
};
programs.bash.sessionVariables = {
NIX_SHELL_PRESERVE_PROMPT = 1;

View File

@ -48,6 +48,7 @@
consent-o-matic
sponsorblock
multi-account-containers
privacy-redirect
] ++ (if (os == "darwin") then [
onepassword-password-manager
] else [
@ -55,6 +56,7 @@
h264ify
fediact
tampermonkey
laboratory-by-mozilla
]);
search = {
default = "DuckDuckGo";
@ -92,4 +94,4 @@
}
];
}
]
]