Base home configuration works

This commit is contained in:
Natsu Kagami 2022-04-19 21:44:08 +00:00
parent 03727d9984
commit 22a6fd34e1
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
4 changed files with 52 additions and 9 deletions

View file

@ -16,7 +16,6 @@
# Imported apps
naersk.url = "github:nix-community/naersk";
rnix-lsp.url = "github:nix-community/rnix-lsp";
rnix-lsp.inputs.naersk.follows = "naersk";
rnix-lsp.inputs.nixpkgs.follows = "nixpkgs-unstable";
youmubot.url = "github:natsukagami/youmubot";
nix-gaming.url = github:fufexan/nix-gaming;
@ -102,12 +101,12 @@
sops-nix.nixosModules.sops
./nki-x1c1/configuration.nix
nixpkgsAsRegistry
# home-manager.nixosModules.home-manager
# {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users.nki = import ./home/kagami-pc-home.nix;
# }
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.nki = import ./home/nki-x1c1.nix;
}
(overlayForSystem "x86_64-linux")
];
};

View file

@ -55,7 +55,7 @@
bottom
## To do tunneling with cloudflare
cloudflared
pkgs.unfree.cloudflared
# Databases
postgresql

View file

@ -39,7 +39,7 @@ let
src = pkgs.fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
rev = rev;
sha256 = "sha256-xjfYdwDNp2Ak7t0dfp0SWJcFVve2iDcEKzDukcxVmzI=";
# sha256 = lib.fakeSha256;
};

44
home/nki-x1c1.nix Normal file
View file

@ -0,0 +1,44 @@
{ pkgs, config, lib, ... } :
{
imports = [
# Common configuration
./common.nix
# Set up X11-specific common configuration
# ./X11/default.nix
# ./X11/hidpi.nix # Enable hiDPI
# We use our own firefox
# ./firefox.nix
# osu!
# ./osu.nix
];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "nki";
home.homeDirectory = "/home/nki";
# More packages
home.packages = (with pkgs; [
# CLI stuff
python
zip
# TeX
texlive.combined.scheme-full
# Java & sbt
openjdk11
sbt
]);
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.05";
}