flake cleanup, removed impermanence

This commit is contained in:
Rouven Seifert 2023-05-18 12:49:06 +02:00
parent 2068b655da
commit 0921151c6e
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 26 additions and 59 deletions

View file

@ -23,17 +23,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1684189380, "lastModified": 1684321175,
"narHash": "sha256-GUp9OkZynocyppLur1VX8oAjtXGue0oKRHbsksOMUm0=", "narHash": "sha256-V4EbM+jK7pvjKBaj0dgAiW9ultzDE27Nz5fRyu/ceMk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b7d814c5744dca7e70b3dc2638f06568dce96ca6", "rev": "59659243cd4ababda605e79b4a9c2e6d83e24c86",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "id": "home-manager",
"repo": "home-manager", "type": "indirect"
"type": "github"
} }
}, },
"hyprland": { "hyprland": {
@ -44,11 +43,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1684255384, "lastModified": 1684332077,
"narHash": "sha256-u8NIuk2ZTGECWTUPlNkv6iLllTbplTg0hBSKQZwAWZw=", "narHash": "sha256-briamwodIZsYolceEjX41mqw/VkKiHuIEprw0u5wioY=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "b5b9af508ab74b1922bc3354d178ebf457db631e", "rev": "79b8576df9630ea1c0fb1c6e399a424c3dcdcd47",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,21 +77,6 @@
"type": "github" "type": "github"
} }
}, },
"impermanence": {
"locked": {
"lastModified": 1684144492,
"narHash": "sha256-5TBG9kZGdKrZGHdyjLA04ODSzhx1Bx/vwMxfRgWF+JU=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "ec1a8e70d61261f9ada30f4e450ea7230d9efb62",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "impermanence",
"type": "github"
}
},
"nix-colors": { "nix-colors": {
"inputs": { "inputs": {
"base16-schemes": "base16-schemes", "base16-schemes": "base16-schemes",
@ -136,15 +120,14 @@
"locked": { "locked": {
"lastModified": 1684169666, "lastModified": 1684169666,
"narHash": "sha256-N5jrykeSxLVgvm3Dd3hZ38/XwM/jU+dltqlXgrGlYxk=", "narHash": "sha256-N5jrykeSxLVgvm3Dd3hZ38/XwM/jU+dltqlXgrGlYxk=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "71ce85372a614d418d5e303dd5702a79d1545c04", "rev": "71ce85372a614d418d5e303dd5702a79d1545c04",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "id": "nixos-hardware",
"repo": "nixos-hardware", "type": "indirect"
"type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
@ -196,18 +179,17 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1684215771, "lastModified": 1684305980,
"narHash": "sha256-fsum28z+g18yreNa1Y7MPo9dtps5h1VkHfZbYQ+YPbk=", "narHash": "sha256-vd4SKXX1KZfSX6n3eoguJw/vQ+sBL8XGdgfxjEgLpKc=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "963006aab35e3e8ebbf6052b6bf4ea712fdd3c28", "rev": "e6e389917a8c778be636e67a67ec958f511cc55d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "id": "nixpkgs",
"ref": "nixos-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs", "type": "indirect"
"type": "github"
} }
}, },
"purge": { "purge": {
@ -234,7 +216,6 @@
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprland": "hyprland", "hyprland": "hyprland",
"impermanence": "impermanence",
"nix-colors": "nix-colors", "nix-colors": "nix-colors",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
@ -260,9 +241,8 @@
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "Mic92", "id": "sops-nix",
"repo": "sops-nix", "type": "indirect"
"type": "github"
} }
}, },
"trucksimulatorbot-images": { "trucksimulatorbot-images": {

View file

@ -2,25 +2,17 @@
description = "My nix setup"; description = "My nix setup";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware";
impermanence.url = "github:nix-community/impermanence";
nix-index-database = { nix-index-database = {
url = "github:Mic92/nix-index-database"; url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
}; };
@ -44,7 +36,6 @@
, nixpkgs , nixpkgs
, home-manager , home-manager
, nix-index-database , nix-index-database
, impermanence
, hyprland , hyprland
, sops-nix , sops-nix
, nix-colors , nix-colors
@ -110,7 +101,6 @@
modules = [ modules = [
./hosts/vm ./hosts/vm
./shared ./shared
impermanence.nixosModules.impermanence
nix-index-database.nixosModules.nix-index nix-index-database.nixosModules.nix-index
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
]; ];

View file

@ -15,10 +15,10 @@
tmp.useTmpfs = true; tmp.useTmpfs = true;
}; };
networking.hostName = "vm"; networking.hostName = "vm";
environment.persistence."/nix/persistent/system" = { # environment.persistence."/nix/persistent/system" = {
directories = [ "/etc/nixos" ]; # directories = [ "/etc/nixos" ];
files = [ "/etc/machine-id" ]; # files = [ "/etc/machine-id" ];
}; # };
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";

View file

@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
environment.variables = { EDITOR = "vim"; }; environment.variables = { EDITOR = "hx"; }; # we set helix in here to have it shared
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
((vim_configurable.override { }).customize { ((vim_configurable.override { }).customize {
name = "vim"; name = "vim";

View file

@ -53,6 +53,7 @@
zsh-newuser-install () {} zsh-newuser-install () {}
switch() { switch() {
sudo true # ask the password so we can leave during the (sometimes quite long) build process
OUT_PATH=/tmp/nixos-rebuild-nom-$(date +%s) OUT_PATH=/tmp/nixos-rebuild-nom-$(date +%s)
${pkgs.nix-output-monitor}/bin/nom build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH ${pkgs.nix-output-monitor}/bin/nom build /etc/nixos#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel -o $OUT_PATH
sudo ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $OUT_PATH sudo ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $OUT_PATH

View file

@ -6,10 +6,6 @@
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "video" "libvirtd" ]; extraGroups = [ "wheel" "video" "libvirtd" ];
}; };
system.activationScripts.report-home-manager-changes = ''
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
nvd diff $(ls -dv /nix/var/nix/profiles/per-user/rouven/home-manager-*-link | tail -2)
'';
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;