Migrate to home-manager
Dependencies
- [2]
UTWZ455REnable automatic storage optimistaion - [3]
O65GI2LLAdd cranelift codegen backend - [4]
6CCHC4ILChange default font to Intel One Mono - [5]
22UQJCEKAdd thunderbird-daily using forked mozilla-overlay - [6]
P42OX2AVAdd laptop power config - [7]
QPPSJBANDisable wait-for-online boot service - [8]
OIU46QOZUse `noatime` option to mount drive - [9]
S2FRVNDWUse Zen kernel - [10]
2N6DL746Add lldb - [11]
DGVQN777Disable automatic timezone setup - [12]
M62K5IYADisable wifi powersaving - [13]
6I2HQYU2Add basic flake configuration - [14]
MNEIZVKHUse sccache for Rust builds - [15]
YOD7H3ARAdd `dog` DNS tool - [16]
CDVXGURZSwitch to Wayland - [17]
BSOQK72CAdd gcc - [18]
HNIFWJ5JUse pop-shell & system76 scheduler - [19]
IB3DJBQ3Remove Lorri daemon - [*]
KV37II4V
Change contents
- file addition: home.nix[21.1]
# Template from https://nix-community.github.io/home-manager/index.xhtml#sec-usage-configuration{ config, pkgs, ... }:letpython-packages = ps: with ps; [requestsdiscordpypandasnumpynosematplotlibseabornbasemapgeopandaspyshpjupyternotebookipythonipykernelopenpyxl];in{home.username = "finchie";home.homeDirectory = "/home/finchie";home.stateVersion = "23.11";programs.home-manager.enable = true;home.packages = with pkgs; [(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {extensions = [ "rust-src" "llvm-tools" "rustc-codegen-cranelift" ];targets = [ "riscv32imc-unknown-none-elf" "x86_64-unknown-none" "wasm32-unknown-unknown" "wasm32-wasi" ];}))(python3.withPackages python-packages)latest.firefox-nightly-binlatest.thunderbird-daily-binneofetchnushellFullpandocbiomealacrittyhelixdirenvdiscord-canaryvscodegitsteamsidequestripgreparduinobatbottomdu-dustasciinemalapcefontconfigzoxidefdtokeihotspotonlyoffice-binhyperfinespottopgradesteam-runlutrismdbookdifftasticlurktypstobs-studiopkg-configopenssllibiconvzstdxxHashyarnnodejslibudev-zeroqemu# llvmPackages.bintoolsxorg.libX11xorg.libxkbfilelibsecretmold# clang_14cmakefontconfigfreetypeninjarufflibsodiumffmpegtkzipgdbsccachegccdogdnsgnomeExtensions.pop-shell# lldbgnumakelldnotion-app-enhancednixpkgs-fmtjujutsubitwarden-desktop];} - edit in flake.nix at line 5
# normal nix stuffnixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - edit in flake.nix at line 17
home-manager = {url = "github:nix-community/home-manager";inputs.nixpkgs.follows = "nixpkgs";};nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - replacement in flake.nix at line 23
# what will be produced (i.e. the build)outputs = inputs: {nixosConfigurations."nixos" =let system = "x86_64-linux";python-packages = ps: with ps; [requestsdiscordpypandasnumpy# spacynosematplotlibseabornbasemapgeopandaspyshpjupyternotebookipythonipykernelopenpyxl];in inputs.nixpkgs.lib.nixosSystem {inherit system;modules = [({pkgs, config, ... }: {imports = [ ./configuration.nix ];config = {nix.settings = {# add binary cachestrusted-public-keys = ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=""nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="];substituters = ["https://cache.nixos.org""https://nixpkgs-wayland.cachix.org"# Boilerplate from https://nix-community.github.io/home-manager/index.xhtml#sec-flakes-nixos-moduleoutputs = inputs@{ nixpkgs, home-manager, ... }: {nixosConfigurations = {# A gotcha: nixos is the HOSTNAME, need to change this eventuallynixos = nixpkgs.lib.nixosSystem {system = "x86_64-linux";modules = [./configuration.nixhome-manager.nixosModules.home-manager{home-manager.useGlobalPkgs = true;home-manager.useUserPackages = true;home-manager.users.finchie = import ./home.nix;}({nixpkgs.overlays = with inputs; [nixpkgs-wayland.overlayrust-overlay.overlays.defaultmozilla-overlay.overlay - replacement in flake.nix at line 44[11.3173]→[11.3173:3476](∅→∅),[11.3476]→[2.0:96](∅→∅),[2.96]→[11.3476:3556](∅→∅),[11.3476]→[11.3476:3556](∅→∅),[11.3556]→[11.3556:3598](∅→∅),[11.3598]→[5.183:219](∅→∅),[5.219]→[11.3642:3655](∅→∅),[11.3642]→[11.3642:3655](∅→∅),[11.3655]→[3.0:11](∅→∅),[3.11]→[11.3656:3804](∅→∅),[11.3656]→[11.3656:3804](∅→∅),[11.3804]→[11.3804:3891](∅→∅),[11.3891]→[3.12:110](∅→∅),[3.110]→[11.3955:4092](∅→∅),[11.3955]→[11.3955:4092](∅→∅),[11.4092]→[11.4092:4182](∅→∅),[11.4182]→[5.220:261](∅→∅),[5.261]→[11.4182:5601](∅→∅),[11.4182]→[11.4182:5601](∅→∅),[11.5601]→[11.0:20](∅→∅),[11.20]→[11.0:16](∅→∅),[11.16]→[11.0:19](∅→∅),[11.19]→[11.0:38](∅→∅),[11.38]→[10.0:17](∅→∅),[11.16]→[11.5601:5636](∅→∅),[10.17]→[11.5601:5636](∅→∅),[11.19]→[11.5601:5636](∅→∅),[11.20]→[11.5601:5636](∅→∅),[11.38]→[11.5601:5636](∅→∅),[11.5601]→[11.5601:5636](∅→∅)
extra-substituters = [# Nix community's cache server"https://nix-community.cachix.org"];extra-trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];};# Automatically hard-link where appropriatenix.optimise.automatic = true;nixpkgs.overlays = with inputs; [nixpkgs-wayland.overlayrust-overlay.overlays.defaultmozilla-overlay.overlay];# or, pull specific packages (built against inputs.nixpkgs, usually `nixos-unstable`)environment.systemPackages = with pkgs; [(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {extensions = [ "rust-src" "llvm-tools-preview" "rustc-codegen-cranelift-preview" ];targets = [ "riscv32imc-unknown-none-elf" "x86_64-unknown-none" "wasm32-unknown-unknown" "wasm32-wasi" ];}))(python3.withPackages python-packages)latest.firefox-nightly-binlatest.thunderbird-daily-binneofetchgnome.gnome-remote-desktop # Needed for screen sharing? see https://bbs.archlinux.org/viewtopic.php?id=283835nushellFullpandocbiomealacrittyhelixdirenvdiscord-canaryvscodegitpijulsteamsidequestripgreparduinobatbottomdu-dustasciinemalapcefontconfigzoxidefdtokeihotspotonlyoffice-binhyperfinepsstbottlestopgradethunderbird-binrustdesksteam-runlutrismdbookdifftasticlurktypstobs-studiopkg-configopenssllibiconvzstdxxHashyarnnodejslibudev-zeroqemullvmPackages.bintoolsxorg.libX11xorg.libxkbfilelibsecretmoldclang_14cmakefontconfigfreetypeninjarufflibsodiumffmpegtkzipgdbsccachegccdogdnsgnomeExtensions.pop-shelllldb];};})];})];}; - replacement in configuration.nix at line 9
[ # Include the results of the hardware scan.[# Include the results of the hardware scan. - replacement in configuration.nix at line 16
# Setup binary cachingnix.settings = {# add binary cachestrusted-public-keys = ["cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=""nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="];substituters = ["https://cache.nixos.org""https://nixpkgs-wayland.cachix.org"];extra-substituters = [# Nix community's cache server"https://nix-community.cachix.org"];extra-trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];};# Automatically hard-link where appropriatenix.optimise.automatic = true; - replacement in configuration.nix at line 59
- replacement in configuration.nix at line 66
- replacement in configuration.nix at line 81
- replacement in configuration.nix at line 84
- replacement in configuration.nix at line 87
- replacement in configuration.nix at line 97
- replacement in configuration.nix at line 110[11.7482]→[11.7482:7578](∅→∅),[11.7578]→[4.0:23](∅→∅),[4.23]→[11.7596:7605](∅→∅),[11.7596]→[11.7596:7605](∅→∅),[11.7605]→[4.24:188](∅→∅)
enableDefaultPackages = true;fontDir.enable = true;packages = with pkgs; [intel-one-mono];fontconfig = {enable = true;defaultFonts = {monospace = ["Intel One Mono"];sansSerif = ["Intel One Mono"];};enableDefaultPackages = true;fontDir.enable = true;packages = with pkgs; [intel-one-mono];fontconfig = {enable = true;defaultFonts = {monospace = [ "Intel One Mono" ];sansSerif = [ "Intel One Mono" ]; - replacement in configuration.nix at line 121
};};}; - edit in configuration.nix at line 136
- replacement in configuration.nix at line 159
nixpkgs.config.allowUnfree = true;nixpkgs.config = {allowUnfree = true;nvidia.acceptLicense = true;};