Quick commit 2024-01-05T18:42:21+01:00

This commit is contained in:
Geoffrey Frogeye 2024-01-05 18:42:21 +01:00
parent 3477528dd5
commit c954f0df5f
9 changed files with 98 additions and 16 deletions

View file

@ -73,7 +73,7 @@ in
type = "luks";
name = "boot";
extraFormatArgs = [ "--type luks1" ];
passwordFile = passwordFile;
passwordFile = "FIXME";
settings = {
# keyFile = "/etc/keys/boot";
};
@ -94,7 +94,7 @@ in
content = {
type = "luks";
name = "razmo";
passwordFile = passwordFile;
passwordFile = "FIXME";
settings = {
# keyFile = "/etc/keys/razmo";
};
@ -129,7 +129,7 @@ in
content = {
type = "luks";
name = "rapswap";
passwordFile = passwordFile;
passwordFile = "FIXME";
settings = {
# keyFile = "/etc/keys/rapswap";
allowDiscards = true;
@ -147,7 +147,7 @@ in
type = "luks";
name = "rapido";
initrdUnlock = true;
passwordFile = passwordFile;
passwordFile = "FIXME";
settings = {
# keyFile = "/etc/keys/rapido";
allowDiscards = true;

View file

@ -1,7 +1,7 @@
{ lib, ... }:
{ lib, nixos-hardware, ... }:
{
imports = [
<nixos-hardware/dell/g3/3779>
# nixos-hardware.dell.g3.3779
];
# UEFI works here, and variables can be touched

65
flake.lock Normal file
View file

@ -0,0 +1,65 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1704099619,
"narHash": "sha256-QRVMkdxLmv+aKGjcgeEg31xtJEIsYq4i1Kbyw5EPS6g=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "7e398b3d76bc1503171b1364c9d4a07ac06f3851",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-23.11",
"repo": "home-manager",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1704458188,
"narHash": "sha256-f6BYEuIqnbrs6J/9m1/1VdkJ6d63hO9kUC09kTPuOqE=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "172385318068519900a7d71c1024242fa6af75f0",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1704295289,
"narHash": "sha256-9WZDRfpMqCYL6g/HNWVvXF0hxdaAgwgIGeLYiOhmes8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b0b2c5445c64191fd8d0b31f2b1a34e45a64547d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "Configs";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11;
home-manager.url = github:nix-community/home-manager/release-23.11;
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixos-hardware.url = github:NixOS/nixos-hardware/;
};
outputs = { self, nixpkgs, home-manager, ... }: {
nixosConfigurations.curacao = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./curacao/os.nix
# TODO Doesn't work with extensions, as they're out of trees
home-manager.nixosModules.home-manager
];
};
};
}

View file

@ -10,6 +10,6 @@
./ssh.nix
./style.nix
./usernix
./vim.nix
# ./vim.nix # FIXME Complains that it's using fetchtarball without a sha256 argument... but it's not?
];
}

View file

@ -44,7 +44,7 @@ in
# Setting a custom base16 theme via nixvim:
# - Is required so nixvim works
# - For the rest only works on dark polarity, use the colorscheme otherwise... shrug
programs.nixvim.colorschemes.base16.colorscheme = "solarized-${polarity}";
# programs.nixvim.colorschemes.base16.colorscheme = "solarized-${polarity}";
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
# home.packages = [ pkgs.dconf ];

View file

@ -29,9 +29,7 @@ let
};
in
{
imports = [
nixvim.homeManagerModules.nixvim
];
imports = [ (import nixvim).homeManagerModules.nixvim ];
programs.nixvim = {
enable = true;

View file

@ -8,7 +8,8 @@
./desktop.nix
./gaming
./geoffrey.nix
./wireless.nix
# ./wireless.nix
# FIXME networks.json is git-ignored, so flakes will not use it
"${builtins.fetchTarball {
url = "https://github.com/nix-community/disko/archive/3cb78c93e6a02f494aaf6aeb37481c27a2e2ee22.tar.gz";
sha256 = "0slkd86c7viv8ping6wizhab6iwxz0bn9fxvzrscz0r745d8iaca";

View file

@ -1,9 +1,5 @@
{ pkgs, lib, config, ... }:
{
imports = [
<home-manager/nixos>
];
users.users.root.initialHashedPassword = "$y$j9T$e64bjL7iyVlniEKwKbM9g0$cCn74za0r6L9QMO20Fdxz3/SX0yvhz3Xd6.2BhtbRL1"; # Not a real password
users.users.geoffrey = {